diff options
author | Grigoriy Orlov <gluk@cvs.openbsd.org> | 2001-04-04 20:19:05 +0000 |
---|---|---|
committer | Grigoriy Orlov <gluk@cvs.openbsd.org> | 2001-04-04 20:19:05 +0000 |
commit | 5f0b8bc5940f501a5f097fbdaf785a597274dd29 (patch) | |
tree | 16aea2e6c2b721c50395db26d64c3b33645348f8 /sys/ufs/ffs/ffs_softdep.c | |
parent | 6d8e6e23755f00f6e9ca3de72b46523ec978316a (diff) |
Add "softdep" option to mount. Update from rw/async to softdep
and otherwise are disabled.
art@ ok.
Diffstat (limited to 'sys/ufs/ffs/ffs_softdep.c')
-rw-r--r-- | sys/ufs/ffs/ffs_softdep.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c index e647919e1c1..6018663b7b0 100644 --- a/sys/ufs/ffs/ffs_softdep.c +++ b/sys/ufs/ffs/ffs_softdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs_softdep.c,v 1.20 2001/03/08 10:56:47 art Exp $ */ +/* $OpenBSD: ffs_softdep.c,v 1.21 2001/04/04 20:19:03 gluk Exp $ */ /* * Copyright 1998, 2000 Marshall Kirk McKusick. All Rights Reserved. * @@ -1091,14 +1091,12 @@ softdep_mount(devvp, mp, fs, cred) struct buf *bp; int error, cyl; - mp->mnt_flag &= ~MNT_ASYNC; - mp->mnt_flag |= MNT_SOFTDEP; /* * When doing soft updates, the counters in the * superblock may have gotten out of sync, so we have * to scan the cylinder groups and recalculate them. */ - if (fs->fs_clean != 0) + if ((fs->fs_flags & FS_UNCLEAN) == 0) return (0); bzero(&cstotal, sizeof cstotal); for (cyl = 0; cyl < fs->fs_ncg; cyl++) { |