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
This commit is contained in:
Jeroen Ruigrok van der Werven 2000-05-14 07:43:12 +00:00
parent 59a7de882e
commit 01f76720fb
2 changed files with 4 additions and 2 deletions

View File

@ -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);

View File

@ -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);