From f817326b2eacf649d2b0d53d60ff2d4b6fd74577 Mon Sep 17 00:00:00 2001 From: dg Date: Sat, 20 Aug 1994 16:03:26 +0000 Subject: 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. --- sys/isofs/cd9660/cd9660_vfsops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/isofs') diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c index 90e2679..7f2d1c3 100644 --- a/sys/isofs/cd9660/cd9660_vfsops.c +++ b/sys/isofs/cd9660/cd9660_vfsops.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)cd9660_vfsops.c 8.3 (Berkeley) 1/31/94 - * $Id: cd9660_vfsops.c,v 1.3 1994/08/02 07:41:33 davidg Exp $ + * $Id: cd9660_vfsops.c,v 1.4 1994/08/20 03:48:45 davidg Exp $ */ #include @@ -403,7 +403,7 @@ cd9660_unmount(mp, mntflags, p) int i, error, ronly, flags = 0; if (mntflags & MNT_FORCE) { - if (!iso_doforce || (mp->mnt_flag & MNT_ROOTFS)) + if (!iso_doforce) return (EINVAL); flags |= FORCECLOSE; } -- cgit v1.1