summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-04-26 20:23:41 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-04-26 20:23:41 +0000
commit8ec00f233a543dbd9d629e6738e5b80f95117ced (patch)
tree3b722cd0a5af52b3147cc098ab207157920dee65
parent817f7cfc35a8694cdb08a158328976f31f11c2e8 (diff)
(pass5): If not marked clean, but now it is, then offer to mark it
clean.
-rw-r--r--ufs-fsck/pass5.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/ufs-fsck/pass5.c b/ufs-fsck/pass5.c
index c6ca29c7..5559d37c 100644
--- a/ufs-fsck/pass5.c
+++ b/ufs-fsck/pass5.c
@@ -329,7 +329,7 @@ pass5 ()
run = 0;
}
- if ((i & (NBBY - 1)) 1= (NBBY - 1))
+ if ((i & (NBBY - 1)) != (NBBY - 1))
bit <<= 1;
else
{
@@ -420,6 +420,16 @@ pass5 ()
}
}
+ if (sblock->fs_clean == 0 && !fix_denied)
+ {
+ if (preen || reply ("MARK FILESYSTEM CLEAN"))
+ {
+ pfix ("FILESYSTEM MARKED CLEAN");
+ sblock->fs_clean = 1;
+ writesb = 1;
+ }
+ }
+
if (writesb)
writeblock (SBLOCK, sblock, SBSIZE);