From: Theodore Ts'o Date: Wed, 26 Mar 2008 12:11:11 +0000 (-0400) Subject: fsck: Fix -C handling so that subsequent progress bars are enabled X-Git-Tag: v1.40.9~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab7862049a3311c5ab3d22dde07823560d13afe0;p=thirdparty%2Fe2fsprogs.git fsck: Fix -C handling so that subsequent progress bars are enabled The exiting fsck instance wasn't marked as DONE, so the safety checks thought a progress bar was still in progress, and so we didn't enable another filesystem's checking. Addresses-Debian-Bug: #432865 Addresses-Launchpad-Bug: #203323 Addresses-Sourceforge-Bug: #1926023 Signed-off-by: "Theodore Ts'o" --- diff --git a/misc/fsck.c b/misc/fsck.c index db572b1e2..14d7a954a 100644 --- a/misc/fsck.c +++ b/misc/fsck.c @@ -615,6 +615,7 @@ static struct fsck_instance *wait_one(int flags) status = EXIT_ERROR; } inst->exit_status = status; + inst->flags |= FLAG_DONE; if (progress && (inst->flags & FLAG_PROGRESS) && !progress_active()) { for (inst2 = instance_list; inst2; inst2 = inst2->next) {