summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Fritsch <sf@cvs.openbsd.org>2017-05-30 10:32:54 +0000
committerStefan Fritsch <sf@cvs.openbsd.org>2017-05-30 10:32:54 +0000
commit2625d81add2fc4d5c8eedfafbb76e8de2019a75a (patch)
treee13bbf29ac1221266e7e96d02146a9e088c969f2
parent242b3211d86116f78328af117365cc7f3ee8b0fe (diff)
ext2fs: Mark superblock as not modified when written
I have seen spurious "file system not clean; please fsck(8)" warnings during "mount -ur". Set e2fs_fmod = 0 when writing the superblock (as ffs does). "Makes sense" deraadt@
-rw-r--r--sys/ufs/ext2fs/ext2fs_vfsops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/ufs/ext2fs/ext2fs_vfsops.c b/sys/ufs/ext2fs/ext2fs_vfsops.c
index 53eaa05a32a..c99cfc78b38 100644
--- a/sys/ufs/ext2fs/ext2fs_vfsops.c
+++ b/sys/ufs/ext2fs/ext2fs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ext2fs_vfsops.c,v 1.98 2017/04/20 14:13:00 visa Exp $ */
+/* $OpenBSD: ext2fs_vfsops.c,v 1.99 2017/05/30 10:32:53 sf Exp $ */
/* $NetBSD: ext2fs_vfsops.c,v 1.1 1997/06/11 09:34:07 bouyer Exp $ */
/*
@@ -1000,6 +1000,7 @@ ext2fs_sbupdate(struct ufsmount *mp, int waitfor)
error = bwrite(bp);
else
bawrite(bp);
+ fs->e2fs_fmod = 0;
return (error);
}