diff options
author | kib <kib@FreeBSD.org> | 2014-08-20 08:13:03 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2014-08-20 08:13:03 +0000 |
commit | 37cbc4993df1d7a657babcfe1c1fe00f2659060e (patch) | |
tree | 8d0e2d18b1c107e5cc49b9e0cdc3a6746cbef201 | |
parent | d9b5edee7dffe27cd951a1397a242b66a4cccdf4 (diff) | |
download | FreeBSD-src-37cbc4993df1d7a657babcfe1c1fe00f2659060e.zip FreeBSD-src-37cbc4993df1d7a657babcfe1c1fe00f2659060e.tar.gz |
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
-rw-r--r-- | sys/ufs/ffs/ffs_vfsops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index 576dd87..d532e1b3 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -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))) { |