summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_mount.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-11-10 07:36:09 +0000
committerphk <phk@FreeBSD.org>2004-11-10 07:36:09 +0000
commit16982b21832c4090daf43db30574f184693b700c (patch)
tree07a6acc92441c4cab147b8195bfe52f44413a398 /sys/kern/vfs_mount.c
parent9fdf02798896bafcd92b649de16e4cdfa56a96eb (diff)
downloadFreeBSD-src-16982b21832c4090daf43db30574f184693b700c.zip
FreeBSD-src-16982b21832c4090daf43db30574f184693b700c.tar.gz
Remove hack which mounts the root filesystem R/W if the device is
named 'md<something>'. While convenient, it does not belong here, if anywhere at all.
Diffstat (limited to 'sys/kern/vfs_mount.c')
-rw-r--r--sys/kern/vfs_mount.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c
index 32686b4..ab8584f 100644
--- a/sys/kern/vfs_mount.c
+++ b/sys/kern/vfs_mount.c
@@ -1337,13 +1337,6 @@ vfs_mountroot_try(const char *mountfrom)
printf("setrootbyname failed\n");
}
- /* If the root device is a type "memory disk", mount RW */
- if (rootdev != NULL && rootdev->si_devsw != NULL) {
- devname = devtoname(rootdev);
- if (devname[0] == 'm' && devname[1] == 'd')
- mp->mnt_flag &= ~MNT_RDONLY;
- }
-
error = VFS_OMOUNT(mp, NULL, NULL, curthread);
done:
OpenPOWER on IntegriCloud