summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgluk <gluk@openbsd.org>2001-04-15 23:46:29 +0000
committergluk <gluk@openbsd.org>2001-04-15 23:46:29 +0000
commit04807f77293de534d35e86ecb8b4f9de7432f6b2 (patch)
tree88f907c9eb3bcdd4d84b965b36be870f0b18bb77
parentRandomized PIDs uglifies "ps -ax" output since it sorts on tty then (diff)
downloadwireguard-openbsd-04807f77293de534d35e86ecb8b4f9de7432f6b2.tar.xz
wireguard-openbsd-04807f77293de534d35e86ecb8b4f9de7432f6b2.zip
Avoid panic on unmounting read-only fs, which previously use softupdates.
This problem occur only on kernels without soft-updates support. art@ ok.
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index 3ffd6abf98e..cbeee670a6c 100644
--- a/sys/ufs/ffs/ffs_vfsops.c
+++ b/sys/ufs/ffs/ffs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_vfsops.c,v 1.38 2001/04/13 02:39:05 gluk Exp $ */
+/* $OpenBSD: ffs_vfsops.c,v 1.39 2001/04/15 23:46:29 gluk Exp $ */
/* $NetBSD: ffs_vfsops.c,v 1.19 1996/02/09 22:22:26 christos Exp $ */
/*
@@ -829,7 +829,7 @@ ffs_unmount(mp, mntflags, p)
ump = VFSTOUFS(mp);
fs = ump->um_fs;
- if (fs->fs_flags & FS_DOSOFTDEP)
+ if (mp->mnt_flag & MNT_SOFTDEP)
error = softdep_flushfiles(mp, flags, p);
else
error = ffs_flushfiles(mp, flags, p);