Whamcloud - gitweb
fsck.c (main): Fix bug reported by Gregory Mutt. Multiple
authorTheodore Ts'o <tytso@mit.edu>
Mon, 28 Oct 2002 21:52:12 +0000 (16:52 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 28 Oct 2002 21:52:12 +0000 (16:52 -0500)
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
misc/fsck.c

index c0d9d4c..6f6d29f 100644 (file)
@@ -1,3 +1,11 @@
+2002-10-28    <tytso@snap.thunk.org>
+
+       * 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  <tytso@mit.edu>
 
        * dumpe2fs.c (list_desc, main): Make dumpe2fs more robust so that
index 7393927..ac54d2e 100644 (file)
@@ -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);