mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Allow specification of a geometry for vnode backed devices as well as
for malloc backed devices.
This commit is contained in:
parent
10a527618c
commit
d5a929dc17
1 changed files with 4 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue