]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2fsck: copy fs when using multi-thread fsck
authorLi Xi <lixi@ddn.com>
Tue, 6 Aug 2019 03:19:15 +0000 (11:19 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 25 Jan 2021 20:16:20 +0000 (15:16 -0500)
commitd88f9ae76882fc1210158ca3558c0bbad6676a79
tree7e075472b77e159ad14e93e1b01aaaa4fd7d676c
parent05a637a9e68d3f7e15323deeab00981d4b7df7e8
e2fsck: copy fs when using multi-thread fsck

This patch only copy the fs to a new one when -m is enabled.
It doesn't actually start any thread. When pass1 test finishes,
the new fs is copied back to the original context.

This patch handles the fs fields in dblist, inode_map and block_map
properly.

Signed-off-by: Li Xi <lixi@ddn.com>
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/pass1.c