clear the fmod flag if it's set.
This commit is contained in:
Julian Elischer 1996-11-13 02:01:36 +00:00
parent 3c6350967c
commit 4c81f2a3fd
3 changed files with 27 additions and 3 deletions

View File

@ -315,9 +315,17 @@ pass5()
&& dofix(&idesc[0], "FREE BLK COUNT(S) WRONG IN SUPERBLK")) {
bcopy((char *)&cstotal, (char *)&fs->fs_cstotal, sizeof *cs);
fs->fs_ronly = 0;
fs->fs_fmod = 0;
sbdirty();
}
if (fs->fs_fmod != 0) {
pwarn("MODIFIED FLAG SET IN SUPERBLOCK");
if (preen)
printf(" (FIXED)\n");
if (preen || reply("FIX") == 1) {
fs->fs_fmod = 0;
sbdirty();
}
}
if (fs->fs_clean == 0) {
pwarn("CLEAN FLAG NOT SET IN SUPERBLOCK");
if (preen)

View File

@ -315,9 +315,17 @@ pass5()
&& dofix(&idesc[0], "FREE BLK COUNT(S) WRONG IN SUPERBLK")) {
bcopy((char *)&cstotal, (char *)&fs->fs_cstotal, sizeof *cs);
fs->fs_ronly = 0;
fs->fs_fmod = 0;
sbdirty();
}
if (fs->fs_fmod != 0) {
pwarn("MODIFIED FLAG SET IN SUPERBLOCK");
if (preen)
printf(" (FIXED)\n");
if (preen || reply("FIX") == 1) {
fs->fs_fmod = 0;
sbdirty();
}
}
if (fs->fs_clean == 0) {
pwarn("CLEAN FLAG NOT SET IN SUPERBLOCK");
if (preen)

View File

@ -315,9 +315,17 @@ pass5()
&& dofix(&idesc[0], "FREE BLK COUNT(S) WRONG IN SUPERBLK")) {
bcopy((char *)&cstotal, (char *)&fs->fs_cstotal, sizeof *cs);
fs->fs_ronly = 0;
fs->fs_fmod = 0;
sbdirty();
}
if (fs->fs_fmod != 0) {
pwarn("MODIFIED FLAG SET IN SUPERBLOCK");
if (preen)
printf(" (FIXED)\n");
if (preen || reply("FIX") == 1) {
fs->fs_fmod = 0;
sbdirty();
}
}
if (fs->fs_clean == 0) {
pwarn("CLEAN FLAG NOT SET IN SUPERBLOCK");
if (preen)