diff options
author | phk <phk@FreeBSD.org> | 2004-12-07 06:58:42 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-12-07 06:58:42 +0000 |
commit | e8e7853c602654b7ea6fb7798a9ce34885d260e6 (patch) | |
tree | e81f435465147b217a3bae0cbac6a608fd3e3dad /sys/kern | |
parent | efea860c4db3921a3439bc51884aee1bba29f1b5 (diff) | |
download | FreeBSD-src-e8e7853c602654b7ea6fb7798a9ce34885d260e6.zip FreeBSD-src-e8e7853c602654b7ea6fb7798a9ce34885d260e6.tar.gz |
Instead of complaining about it, just silently filter out MNT_ROOTFS.
This fixes the "fsck /" problem various people have reported overnight.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_mount.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index bce3da1..d2e823e5 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); |