]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
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 db572b1e285144a9775b0a5cc9a873d564857451..14d7a954aa2ff3a6c3ae4b43375a0e6282254221 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) {