summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-12-09 04:54:43 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-12-09 04:54:43 +0000
commit9be436d4cf81ee7111837612fd2e0ac74b3c237d (patch)
tree91ce7d0f3d9b03a825ab354640a4fe532fc810a5
parent900f574e1f49c18be8e2cc07f21abcb10fdc8ec5 (diff)
when downgrading a filesystem to read-only, use softdep_flushfiles; mckusick
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index 7b25c6c9995..425b3babfe5 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.13 1997/11/11 15:28:44 csapuntz Exp $ */
+/* $OpenBSD: ffs_vfsops.c,v 1.14 1997/12/09 04:54:42 deraadt Exp $ */
/* $NetBSD: ffs_vfsops.c,v 1.19 1996/02/09 22:22:26 christos Exp $ */
/*
@@ -164,7 +164,10 @@ ffs_mount(mp, path, data, ndp, p)
flags = WRITECLOSE;
if (mp->mnt_flag & MNT_FORCE)
flags |= FORCECLOSE;
- error = ffs_flushfiles(mp, flags, p);
+ if (mp->mnt_flag & MNT_SOFTDEP)
+ error = softdep_flushfiles(mp, flags, p);
+ else
+ error = ffs_flushfiles(mp, flags, p);
if (error == 0 &&
ffs_cgupdate(ump, MNT_WAIT) == 0 &&
fs->fs_clean & FS_WASCLEAN) {