diff options
Diffstat (limited to 'sbin/fsck_ifs/pass5.c')
-rw-r--r-- | sbin/fsck_ifs/pass5.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sbin/fsck_ifs/pass5.c b/sbin/fsck_ifs/pass5.c index 2e98f96..84e4ba7 100644 --- a/sbin/fsck_ifs/pass5.c +++ b/sbin/fsck_ifs/pass5.c @@ -316,4 +316,13 @@ pass5() fs->fs_fmod = 0; sbdirty(); } + if (fs->fs_clean == 0) { + pwarn("CLEAN FLAG IS WRONG IN SUPERBLOCK"); + if (preen) + printf(" (FIXED)\n"); + if (preen || reply("FIX") == 1) { + fs->fs_clean = 1; + sbdirty(); + } + } } |