Whamcloud - gitweb
e2fsck: add -m option for multithread
authorLi Xi <lixi@ddn.com>
Sun, 4 Aug 2019 15:28:59 +0000 (23:28 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 28 Mar 2022 22:13:08 +0000 (16:13 -0600)
commit805df6c10ad85f28ccd32e9d3d196d3a1a8fbfe1
tree340f403dd3ad9d6c80758caec5948b1bc9a16d71
parent8786b013bc794c7c024b7213114a5175d56ae2d3
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]