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, 19 Sep 2022 21:40:05 +0000 (15:40 -0600)
commitdc43cc1cadd3dbcbaeb9b4e09cb8c99fae885b5a
tree452e22cefae514874c0d408d1fdf65ab8e0dbb32
parentdbaedc87e9d048077385c3a07a5ffbde518e5d28
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]