From 1d4c7945ff3213bd928b8722a7f057535836db24 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Mon, 28 Oct 2002 16:52:12 -0500 Subject: [PATCH] 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. --- misc/ChangeLog | 8 ++++++++ misc/fsck.c | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) 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); -- 1.8.3.1