Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Aug 2014 08:13:03 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r270203 - head/sys/ufs/ffs
Message-ID:  <201408200813.s7K8D3hS064219@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Wed Aug 20 08:13:03 2014
New Revision: 270203
URL: http://svnweb.freebsd.org/changeset/base/270203

Log:
  Correct the test for condition to suspend UFS filesystem during
  unmount.  There is no need to suspend read-only filesystem, while we
  need suspension on modificable mount point.
  
  Reported by:	rwatson
  Tested by:	pho
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/sys/ufs/ffs/ffs_vfsops.c

Modified: head/sys/ufs/ffs/ffs_vfsops.c
==============================================================================
--- head/sys/ufs/ffs/ffs_vfsops.c	Wed Aug 20 08:07:08 2014	(r270202)
+++ head/sys/ufs/ffs/ffs_vfsops.c	Wed Aug 20 08:13:03 2014	(r270203)
@@ -1213,7 +1213,7 @@ ffs_unmount(mp, mntflags)
 	susp = 0;
 	if (mntflags & MNT_FORCE) {
 		flags |= FORCECLOSE;
-		susp = fs->fs_ronly != 0;
+		susp = fs->fs_ronly == 0;
 	}
 #ifdef UFS_EXTATTR
 	if ((error = ufs_extattr_stop(mp, td))) {



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