Whamcloud - gitweb
e2fsck: add -m option for multithread
authorLi Xi <lixi@ddn.com>
Sun, 4 Aug 2019 15:28:59 +0000 (23:28 +0800)
committerLi Dongyang <dongyangli@ddn.com>
Fri, 28 Apr 2023 00:35:53 +0000 (10:35 +1000)
commit6b511e90192bbe269771ff8a60059b9b5214bac3
treee826617d4c7cf69ec9e98363eb39981b7ef3102b
parent25ad8a431331b4d1d444a70b6079456cc612ac40
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.

E2fsprogs-commit: 842ae5f528f9797e4b2c739daa76884e4349e8f3

Change-Id: I428f4f3b10974b769100bf00169bdd7d8cf86deb
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: Saranya Muruganandam <saranyamohan@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
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]