Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Feb 2013 11:19:44 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r246550 - stable/8/sys/fs/msdosfs
Message-ID:  <201302081119.r18BJiJr066231@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Fri Feb  8 11:19:43 2013
New Revision: 246550
URL: http://svnweb.freebsd.org/changeset/base/246550

Log:
  MFC r246219:
  Use MNT_SYNCHRONOUS to decide to write the FAT updates syncrhonously.

Modified:
  stable/8/sys/fs/msdosfs/msdosfs_fat.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/fs/   (props changed)

Modified: stable/8/sys/fs/msdosfs/msdosfs_fat.c
==============================================================================
--- stable/8/sys/fs/msdosfs/msdosfs_fat.c	Fri Feb  8 11:17:47 2013	(r246549)
+++ stable/8/sys/fs/msdosfs/msdosfs_fat.c	Fri Feb  8 11:19:43 2013	(r246550)
@@ -379,7 +379,7 @@ updatefats(pmp, bp, fatbn)
 				((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 @@ updatefats(pmp, bp, fatbn)
 	/*
 	 * 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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302081119.r18BJiJr066231>