diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-12-07 06:58:42 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-12-07 06:58:42 +0000 |
commit | 46d2b4184d7ccdd9c8dd1e250a046b1c007720eb (patch) | |
tree | e81f435465147b217a3bae0cbac6a608fd3e3dad /sys/kern/vfs_mount.c | |
parent | 993fd0c509ec6d52d9f187f58ed4e5567f0d1b4d (diff) | |
download | src-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.c | 3 |
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); |