summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2008-03-26 08:11:11 -0400
committerTheodore Ts'o <tytso@mit.edu>2008-03-26 08:11:11 -0400
commitab7862049a3311c5ab3d22dde07823560d13afe0 (patch)
tree2ad3ae50795034d38239ebde9f7da02ddba934d1 /misc
parent402b95d285cbd12f0f11c786badbdf23ae701a89 (diff)
downloade2fsprogs-ab7862049a3311c5ab3d22dde07823560d13afe0.tar.gz
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" <tytso@mit.edu>
Diffstat (limited to 'misc')
-rw-r--r--misc/fsck.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/fsck.c b/misc/fsck.c
index db572b1e..14d7a954 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) {