aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/vfs_mount.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2004-12-07 06:58:42 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2004-12-07 06:58:42 +0000
commit46d2b4184d7ccdd9c8dd1e250a046b1c007720eb (patch)
treee81f435465147b217a3bae0cbac6a608fd3e3dad /sys/kern/vfs_mount.c
parent993fd0c509ec6d52d9f187f58ed4e5567f0d1b4d (diff)
downloadsrc-46d2b4184d7ccdd9c8dd1e250a046b1c007720eb.tar.gz
src-46d2b4184d7ccdd9c8dd1e250a046b1c007720eb.zip
Instead of complaining about it, just silently filter out MNT_ROOTFS.
This fixes the "fsck /" problem various people have reported overnight.
Notes
Notes: svn path=/head/; revision=138507
Diffstat (limited to 'sys/kern/vfs_mount.c')
-rw-r--r--sys/kern/vfs_mount.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c
index bce3da114572..d2e823e564cc 100644
--- a/sys/kern/vfs_mount.c
+++ b/sys/kern/vfs_mount.c
@@ -524,8 +524,7 @@ mount(td, uap)
int error;
/* Kick out MNT_ROOTFS early as it is legal internally */
- if (uap->flags & MNT_ROOTFS)
- return (EINVAL);
+ uap->flags &= ~MNT_ROOTFS;
fstype = malloc(MFSNAMELEN, M_TEMP, M_WAITOK);