Whamcloud - gitweb
LU-8465 e2fsck: add -m option for multithread 89/35689/11
authorLi Xi <lixi@ddn.com>
Sun, 4 Aug 2019 15:28:59 +0000 (23:28 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 18 Sep 2020 16:02:37 +0000 (16:02 +0000)
commite80445181c12f55a61a6e4d4b178d2960d0e403d
tree6b24e46361ab709435cea9ab022b733ceb446658
parent828f7975917c5351ba2616ae28aa737857b605a0
LU-8465 e2fsck: add -m option for multithread

-m option is added but no actual functionality is added. This
patch only adds the logic that when -m is specified, one of
-p/-y/-n options should be specified. And when -m is specified,
-C shouldn't be specified and the completion progress report won't
be triggered by sending SIGUSR1/SIGUSR2 signals. This simplifies
the implementation of multi-thread fsck in the future.

Completion progress support with multi-thread fsck will be added
back after multi-thread fsck implementation is finished. Right
now, disable it to simplify the implementation of multi-thread fsck.

Change-Id: I34c6ee2263bd398699acefe88fb4526f19148e39
Signed-off-by: Li Xi <lixi@ddn.com>
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-on: https://review.whamcloud.com/35689
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
27 files changed:
e2fsck/e2fsck.h
e2fsck/unix.c
tests/f_multithread/expect.1 [new file with mode: 0644]
tests/f_multithread/expect.2 [new file with mode: 0644]
tests/f_multithread/image.gz [new symlink]
tests/f_multithread/name [new file with mode: 0644]
tests/f_multithread/script [new file with mode: 0644]
tests/f_multithread_completion/expect.1 [new file with mode: 0644]
tests/f_multithread_completion/expect.2 [new file with mode: 0644]
tests/f_multithread_completion/image.gz [new symlink]
tests/f_multithread_completion/name [new file with mode: 0644]
tests/f_multithread_completion/script [new file with mode: 0644]
tests/f_multithread_no/expect.1 [new file with mode: 0644]
tests/f_multithread_no/expect.2 [new file with mode: 0644]
tests/f_multithread_no/image.gz [new symlink]
tests/f_multithread_no/name [new file with mode: 0644]
tests/f_multithread_no/script [new file with mode: 0644]
tests/f_multithread_preen/expect.1 [new file with mode: 0644]
tests/f_multithread_preen/expect.2 [new file with mode: 0644]
tests/f_multithread_preen/image.gz [new symlink]
tests/f_multithread_preen/name [new file with mode: 0644]
tests/f_multithread_preen/script [new file with mode: 0644]
tests/f_multithread_yes/expect.1 [new file with mode: 0644]
tests/f_multithread_yes/expect.2 [new file with mode: 0644]
tests/f_multithread_yes/image.gz [new symlink]
tests/f_multithread_yes/name [new file with mode: 0644]
tests/f_multithread_yes/script [new file with mode: 0644]