summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-06-20 21:35:17 +0000
committerMiles Bader <miles@gnu.org>1996-06-20 21:35:17 +0000
commit012fae8a6d103a2f6988fb015dde01124c0ab6c3 (patch)
tree15d1b27e3bb1a4cd44bd4ffeb6676a0d9821e2c3
parent957bb98d980426a65049f2657758b89993af7ae0 (diff)
(fsck): Wait for fscks to finish.
-rw-r--r--sutils/fsck.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sutils/fsck.c b/sutils/fsck.c
index fea3ccbd..bf73cff3 100644
--- a/sutils/fsck.c
+++ b/sutils/fsck.c
@@ -380,6 +380,8 @@ fsck (struct fstab *fstab, int flags, int max_parallel)
time. */
{
debug ("Pass %d", pass);
+
+ /* Try and fsck every filesystem in this pass. */
for (fs = fstab->entries; fs; fs = fs->next)
if (fs->mntent.mnt_passno == pass)
/* FS is applicable for this pass. */
@@ -405,6 +407,10 @@ fsck (struct fstab *fstab, int flags, int max_parallel)
else
fs_debug (fs, "Not fsckable");
}
+
+ /* Now wait for them all to finish. */
+ while (fscks->running)
+ merge_status (fscks_wait (fscks));
}
free (fscks);