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:
parent
59a7de882e
commit
01f76720fb
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user