aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2006-08-03 03:55:52 +0000
committerXin LI <delphij@FreeBSD.org>2006-08-03 03:55:52 +0000
commitbcc4260f3bc7ead8e8472e4cb091857092745ce1 (patch)
tree8e24d23274ce4738ae344f92ee28762044370fc9
parentda4ab3aa26255af5ee62b5cf725dbbec9e4cd8c3 (diff)
Notes
-rw-r--r--sys/fs/msdosfs/msdosfs_vfsops.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/fs/msdosfs/msdosfs_vfsops.c b/sys/fs/msdosfs/msdosfs_vfsops.c
index c9efa9005620..a485632d3d1f 100644
--- a/sys/fs/msdosfs/msdosfs_vfsops.c
+++ b/sys/fs/msdosfs/msdosfs_vfsops.c
@@ -283,6 +283,10 @@ msdosfs_mount(struct mount *mp, struct thread *td)
g_access(pmp->pm_cp, 0, -1, 0);
g_topology_unlock();
PICKUP_GIANT();
+ /* Now the volume is clean. Mark it. */
+ error = markvoldirty(pmp, 0);
+ if (error && (flags & FORCECLOSE) == 0)
+ return (error);
} else if ((pmp->pm_flags & MSDOSFSMNT_RONLY) &&
!vfs_flagopt(mp->mnt_optnew, "ro", NULL, 0)) {
/*