[Midnightbsd-cvs] src [8764] trunk/sys/fs/msdosfs/msdosfs_fat.c: Use MNT_SYNCHRONOUS to decide to write the FAT updates
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Sep 25 22:43:38 EDT 2016
Revision: 8764
http://svnweb.midnightbsd.org/src/?rev=8764
Author: laffer1
Date: 2016-09-25 22:43:38 -0400 (Sun, 25 Sep 2016)
Log Message:
-----------
Use MNT_SYNCHRONOUS to decide to write the FAT updates
Modified Paths:
--------------
trunk/sys/fs/msdosfs/msdosfs_fat.c
Modified: trunk/sys/fs/msdosfs/msdosfs_fat.c
===================================================================
--- trunk/sys/fs/msdosfs/msdosfs_fat.c 2016-09-26 02:43:05 UTC (rev 8763)
+++ trunk/sys/fs/msdosfs/msdosfs_fat.c 2016-09-26 02:43:38 UTC (rev 8764)
@@ -379,7 +379,7 @@
((u_int8_t *)bpn->b_data)[3] |= 0x80;
else if (cleanfat == 32)
((u_int8_t *)bpn->b_data)[7] |= 0x08;
- if (pmp->pm_flags & MSDOSFSMNT_WAITONFAT)
+ if (pmp->pm_mountp->mnt_flag & MNT_SYNCHRONOUS)
bwrite(bpn);
else
bdwrite(bpn);
@@ -389,7 +389,7 @@
/*
* Write out the first (or current) fat last.
*/
- if (pmp->pm_flags & MSDOSFSMNT_WAITONFAT)
+ if (pmp->pm_mountp->mnt_flag & MNT_SYNCHRONOUS)
bwrite(bp);
else
bdwrite(bp);
More information about the Midnightbsd-cvs
mailing list