summaryrefslogtreecommitdiffstats
path: root/sys/isofs
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/isofs
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/isofs')
-rw-r--r--sys/isofs/cd9660/cd9660_vfsops.c4
1 files changed, 2 insertions, 2 deletions
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 <sys/param.h>
@@ -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;
}
OpenPOWER on IntegriCloud