summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_conf.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-12-12 16:34:43 +0000
committerpeter <peter@FreeBSD.org>1999-12-12 16:34:43 +0000
commit77df06a0b6baeceab05a08e00776dc7d71af629e (patch)
tree32cfcb8b8e802e131236851de3f66fdbf0034f1e /sys/kern/vfs_conf.c
parent88b35ea77bf6e43a7f3fc5a5d63eb79af3d16bb4 (diff)
downloadFreeBSD-src-77df06a0b6baeceab05a08e00776dc7d71af629e.zip
FreeBSD-src-77df06a0b6baeceab05a08e00776dc7d71af629e.tar.gz
Put on asbestos suit and put a splcam() around the 'Mounting root from..'
message to stop it splitting. Every single scsi machine I've seen seems to reliably collide with this and it's rather annoying.
Diffstat (limited to 'sys/kern/vfs_conf.c')
-rw-r--r--sys/kern/vfs_conf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/vfs_conf.c b/sys/kern/vfs_conf.c
index a60bef0..04cf2b1 100644
--- a/sys/kern/vfs_conf.c
+++ b/sys/kern/vfs_conf.c
@@ -166,6 +166,7 @@ vfs_mountroot_try(char *mountfrom)
char *vfsname, *path;
int error;
char patt[32];
+ int s;
vfsname = NULL;
path = NULL;
@@ -175,7 +176,9 @@ vfs_mountroot_try(char *mountfrom)
if (mountfrom == NULL)
return(error); /* don't complain */
+ s = splcam(); /* Overkill, but annoying without it */
printf("Mounting root from %s\n", mountfrom);
+ splx(s);
/* parse vfs name and path */
vfsname = malloc(MFSNAMELEN, M_MOUNT, M_WAITOK);
OpenPOWER on IntegriCloud