summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorasmodai <asmodai@FreeBSD.org>2000-05-14 07:43:12 +0000
committerasmodai <asmodai@FreeBSD.org>2000-05-14 07:43:12 +0000
commit0d05e481239a1d5410cfdb2e72430c54d39e9361 (patch)
tree74cff1b0abccb108692933cd1c57f226c4110a80 /sys/kern
parent3da24443150cfa8b73418f3709c147d3745a9c6f (diff)
downloadFreeBSD-src-0d05e481239a1d5410cfdb2e72430c54d39e9361.zip
FreeBSD-src-0d05e481239a1d5410cfdb2e72430c54d39e9361.tar.gz
Fix the rootmount code for now.
This function will probably rewritten/renamed to devpp. Submitted by: Assar Westerlund <assar@sics.se> on -current Confirmed to work: Steinar Haug <sthaug@nethelp.no>, Manfred Antar <mantar@pacbell.net> Reviewed by: phk
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_export.c3
-rw-r--r--sys/kern/vfs_subr.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c
index 6620852..670d999 100644
--- a/sys/kern/vfs_export.c
+++ b/sys/kern/vfs_export.c
@@ -1276,6 +1276,7 @@ reassignbuf(bp, newvp)
/*
* Create a vnode for a block device.
* Used for mounting the root file system.
+ * XXX: This now changed to a VCHR due to the block/char merging.
*/
int
bdevvp(dev, vpp)
@@ -1296,7 +1297,7 @@ bdevvp(dev, vpp)
return (error);
}
vp = nvp;
- vp->v_type = VBLK;
+ vp->v_type = VCHR;
addalias(vp, dev);
*vpp = vp;
return (0);
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 6620852..670d999 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -1276,6 +1276,7 @@ reassignbuf(bp, newvp)
/*
* Create a vnode for a block device.
* Used for mounting the root file system.
+ * XXX: This now changed to a VCHR due to the block/char merging.
*/
int
bdevvp(dev, vpp)
@@ -1296,7 +1297,7 @@ bdevvp(dev, vpp)
return (error);
}
vp = nvp;
- vp->v_type = VBLK;
+ vp->v_type = VCHR;
addalias(vp, dev);
*vpp = vp;
return (0);
OpenPOWER on IntegriCloud