summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_mount.c
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2008-02-18 20:58:57 +0000
committeryar <yar@FreeBSD.org>2008-02-18 20:58:57 +0000
commitce8c4934005fb020ee63b75191b67718d8e42629 (patch)
treeec280aec5d44b2e382b340e82d81b4b4e30d28f8 /sys/kern/vfs_mount.c
parent6733058442037a1dbef4e6638c1305b7745013dd (diff)
downloadFreeBSD-src-ce8c4934005fb020ee63b75191b67718d8e42629.zip
FreeBSD-src-ce8c4934005fb020ee63b75191b67718d8e42629.tar.gz
Undo the damage I did in sys/kern/vfs_mount.c #1.274 and
sbin/mount_nfs/mount_nfs.c #1.76. Let the dragons sleep. Requested by: rodrigc, des PR: kern/120319 (welcome the bug back)
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 a494401..0f829a9 100644
--- a/sys/kern/vfs_mount.c
+++ b/sys/kern/vfs_mount.c
@@ -1730,11 +1730,10 @@ vfs_mountroot_try(const char *mountfrom)
strcpy(path, ROOTNAME);
error = kernel_vmount(
- MNT_ROOTFS,
+ MNT_RDONLY | MNT_ROOTFS,
"fstype", vfsname,
"fspath", "/",
"from", path,
- "ro", NULL,
NULL);
if (error == 0) {
/*
OpenPOWER on IntegriCloud