summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/nfs_vfsops.c
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1994-08-20 16:03:26 +0000
committerdg <dg@FreeBSD.org>1994-08-20 16:03:26 +0000
commitf817326b2eacf649d2b0d53d60ff2d4b6fd74577 (patch)
treee9031b5de5b5dd36f5609577351266694d3cb1ba /sys/nfsclient/nfs_vfsops.c
parenta376cb63c72e1f3347c10ab96276fd745e816fea (diff)
downloadFreeBSD-src-f817326b2eacf649d2b0d53d60ff2d4b6fd74577.zip
FreeBSD-src-f817326b2eacf649d2b0d53d60ff2d4b6fd74577.tar.gz
Implemented filesystem clean bit via:
machdep.c: Changed printf's a little and call vfs_unmountall() if the sync was successful. cd9660_vfsops.c, ffs_vfsops.c, nfs_vfsops.c, lfs_vfsops.c: Allow dismount of root FS. It is now disallowed at a higher level. vfs_conf.c: Removed unused rootfs global. vfs_subr.c: Added new routines vfs_unmountall and vfs_unmountroot. Filesystems are now dismounted if the machine is properly rebooted. ffs_vfsops.c: Toggle clean bit at the appropriate places. Print warning if an unclean FS is mounted. ffs_vfsops.c, lfs_vfsops.c: Fix bug in selecting proper flags for VOP_CLOSE(). vfs_syscalls.c: Disallow dismounting root FS via umount syscall.
Diffstat (limited to 'sys/nfsclient/nfs_vfsops.c')
-rw-r--r--sys/nfsclient/nfs_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c
index d806e26..1d373ce5 100644
--- a/sys/nfsclient/nfs_vfsops.c
+++ b/sys/nfsclient/nfs_vfsops.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_vfsops.c 8.3 (Berkeley) 1/4/94
- * $Id$
+ * $Id: nfs_vfsops.c,v 1.2 1994/08/02 07:52:16 davidg Exp $
*/
#include <sys/param.h>
@@ -542,7 +542,7 @@ nfs_unmount(mp, mntflags, p)
extern int doforce;
if (mntflags & MNT_FORCE) {
- if (!doforce || (mp->mnt_flag & MNT_ROOTFS))
+ if (!doforce)
return (EINVAL);
flags |= FORCECLOSE;
}
OpenPOWER on IntegriCloud