From d2252e96c6bc6ed23c6d3a732d3c2c5a8b2306b7 Mon Sep 17 00:00:00 2001 From: sf Date: Tue, 30 May 2017 10:32:53 +0000 Subject: [PATCH] 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@ --- sys/ufs/ext2fs/ext2fs_vfsops.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.20.1