Whamcloud - gitweb
e2fsck: copy fs when using multi-thread fsck
authorLi Xi <lixi@ddn.com>
Tue, 6 Aug 2019 03:19:15 +0000 (11:19 +0800)
committerLi Dongyang <dongyangli@ddn.com>
Fri, 24 May 2024 11:00:27 +0000 (21:00 +1000)
commite7d757c1ae9b94d5bd842300f84f997c3fea80b2
tree26d8c96cadf79b695b83b02123839b76e38260f7
parenta7da896ec5c27bcf4007c38457886f273d190681
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.

E2fsprogs-commit: d88f9ae76882fc1210158ca3558c0bbad6676a79

Change-Id: Iab763de64e63366bc413d954dd7c8a8af45cb6a2
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