From: Theodore Ts'o Date: Mon, 28 Oct 2002 21:52:12 +0000 (-0500) Subject: fsck.c (main): Fix bug reported by Gregory Mutt. Multiple X-Git-Tag: E2FSPROGS-1_30~19 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=1d4c7945ff3213bd928b8722a7f057535836db24;p=tools%2Fe2fsprogs.git fsck.c (main): Fix bug reported by Gregory Mutt. Multiple filesystems explicitly specified on the command line were not being checked in parallel, due to a logic bug introduced in to support the FSCK_MAX_INST environment variable. --- diff --git a/misc/ChangeLog b/misc/ChangeLog index c0d9d4c..6f6d29f 100644 --- a/misc/ChangeLog +++ b/misc/ChangeLog @@ -1,3 +1,11 @@ +2002-10-28 + + * fsck.c (main): Fix bug reported by Gregory Mutt. Multiple + filesystems explicitly specified on the command line were + not being checked in parallel, due to a logic bug + introduced in to support the FSCK_MAX_INST environment + variable. + 2002-10-25 Theodore Ts'o * dumpe2fs.c (list_desc, main): Make dumpe2fs more robust so that diff --git a/misc/fsck.c b/misc/fsck.c index 7393927..ac54d2e 100644 --- a/misc/fsck.c +++ b/misc/fsck.c @@ -1193,7 +1193,8 @@ int main(int argc, char *argv[]) break; } fsck_device(devices[i], interactive); - if (serialize || (num_running >= max_running)) { + if (serialize || + (max_running && (num_running >= max_running))) { struct fsck_instance *inst; inst = wait_one(0); @@ -1201,6 +1202,8 @@ int main(int argc, char *argv[]) status |= inst->exit_status; free_instance(inst); } + if (verbose > 1) + printf("----------------------------------\n"); } } status |= wait_all(0);