Whamcloud - gitweb
fsck: Fix -C handling so that subsequent progress bars are enabled
authorTheodore Ts'o <tytso@mit.edu>
Wed, 26 Mar 2008 12:11:11 +0000 (08:11 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 26 Mar 2008 12:11:11 +0000 (08:11 -0400)
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" <tytso@mit.edu>
misc/fsck.c

index db572b1..14d7a95 100644 (file)
@@ -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) {