From 0d05e481239a1d5410cfdb2e72430c54d39e9361 Mon Sep 17 00:00:00 2001 From: asmodai Date: Sun, 14 May 2000 07:43:12 +0000 Subject: Fix the rootmount code for now. This function will probably rewritten/renamed to devpp. Submitted by: Assar Westerlund on -current Confirmed to work: Steinar Haug , Manfred Antar Reviewed by: phk --- sys/kern/vfs_export.c | 3 ++- sys/kern/vfs_subr.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/kern') 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); -- cgit v1.1