Whamcloud - gitweb
LU-8465 e2fsck: copy fs when using multi-thread fsck 96/35696/7
authorLi Xi <lixi@ddn.com>
Tue, 6 Aug 2019 03:19:15 +0000 (11:19 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 18 Sep 2020 16:05:44 +0000 (16:05 +0000)
commit7432f421b844b5cc6c84db05454d7cfdba1d449f
tree3a362f6f95999138fdfb0b005afbf9aec508fe6b
parent59c8379f2b51885ee74b248ab93bdf742c1eb96d
LU-8465 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.

Change-Id: I1cc80bb1d762692a6bde3a57d1498d2842884c41
Signed-off-by: Li Xi <lixi@ddn.com>
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-on: https://review.whamcloud.com/35696
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
e2fsck/pass1.c