From e8e7853c602654b7ea6fb7798a9ce34885d260e6 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 7 Dec 2004 06:58:42 +0000 Subject: Instead of complaining about it, just silently filter out MNT_ROOTFS. This fixes the "fsck /" problem various people have reported overnight. --- sys/kern/vfs_mount.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/kern/vfs_mount.c') 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); -- cgit v1.1