summaryrefslogtreecommitdiff
path: root/sys/ufs
diff options
context:
space:
mode:
authorConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>1997-11-11 15:28:45 +0000
committerConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>1997-11-11 15:28:45 +0000
commit8c488ff89f3f0626d1dd74910ca350d7636ded37 (patch)
treef0712a7dfb8dda183891bcf741170a4c4a688418 /sys/ufs
parenta6271469b969dd0722e9b914d7c03af8cd4f499d (diff)
Make sure the clean bits are set correctly.
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index ce338f1c30c..7b25c6c9995 100644
--- a/sys/ufs/ffs/ffs_vfsops.c
+++ b/sys/ufs/ffs/ffs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_vfsops.c,v 1.12 1997/11/06 05:59:20 csapuntz Exp $ */
+/* $OpenBSD: ffs_vfsops.c,v 1.13 1997/11/11 15:28:44 csapuntz Exp $ */
/* $NetBSD: ffs_vfsops.c,v 1.19 1996/02/09 22:22:26 christos Exp $ */
/*
@@ -197,7 +197,8 @@ ffs_mount(mp, path, data, ndp, p)
VOP_UNLOCK(devvp, 0, p);
}
fs->fs_ronly = 0;
- fs->fs_clean <<= 1;
+ if (fs->fs_clean & FS_ISCLEAN)
+ fs->fs_clean = FS_WASCLEAN;
fs->fs_fmod = 1;
(void) ffs_sbupdate(ump, MNT_WAIT);
}
@@ -542,7 +543,9 @@ ffs_mountfs(devvp, mp, p)
free(base, M_UFSMNT);
goto out;
}
- fs->fs_clean = 0;
+ if (fs->fs_clean & FS_ISCLEAN)
+ fs->fs_clean = FS_WASCLEAN;
+
(void) ffs_sbupdate(ump, MNT_WAIT);
}
return (0);