Allow specification of a geometry for vnode backed devices as well as

for malloc backed devices.
This commit is contained in:
Poul-Henning Kamp 2004-01-12 10:52:00 +00:00
parent 10a527618c
commit d5a929dc17
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124421

View File

@ -903,6 +903,10 @@ mdcreate_vnode(struct md_ioctl *mdio, struct thread *td)
return (EBUSY);
}
if (mdio->md_fwsectors != 0)
sc->fwsectors = mdio->md_fwsectors;
if (mdio->md_fwheads != 0)
sc->fwheads = mdio->md_fwheads;
sc->type = MD_VNODE;
sc->flags = mdio->md_options & MD_FORCE;
if (!(flags & FWRITE))