summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_mount.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/kern/vfs_mount.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/kern/vfs_mount.c')
-rw-r--r--sys/kern/vfs_mount.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c
index 70acd9b..70377ed 100644
--- a/sys/kern/vfs_mount.c
+++ b/sys/kern/vfs_mount.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)vfs_conf.c 8.8 (Berkeley) 3/31/94
- * $Id$
+ * $Id: vfs_conf.c,v 1.2 1994/08/02 07:43:19 davidg Exp $
*/
#include <sys/param.h>
@@ -48,10 +48,6 @@
int (*mountroot)() = ffs_mountroot;
#endif
-/*
- * These define the root filesystem and device.
- */
-struct mount *rootfs;
struct vnode *rootvnode;
/*
OpenPOWER on IntegriCloud