svn commit: r270203 - head/sys/ufs/ffs
Konstantin Belousov
kib at FreeBSD.org
Wed Aug 20 08:13:04 UTC 2014
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))) {
More information about the svn-src-all
mailing list