diff options
author | phk <phk@FreeBSD.org> | 2004-01-12 10:52:00 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-01-12 10:52:00 +0000 |
commit | 85e17886ebac50dbb6b31fb16d6acea658a2cda9 (patch) | |
tree | 3af8ae17d488bfaa972e8c5a78e0bf5fd470b9a6 /sys/dev/md | |
parent | 275c1489e921dd915053d098c1029b760758e67a (diff) | |
download | FreeBSD-src-85e17886ebac50dbb6b31fb16d6acea658a2cda9.zip FreeBSD-src-85e17886ebac50dbb6b31fb16d6acea658a2cda9.tar.gz |
Allow specification of a geometry for vnode backed devices as well as
for malloc backed devices.
Diffstat (limited to 'sys/dev/md')
-rw-r--r-- | sys/dev/md/md.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index 06976f5..b0f1795 100644 --- a/sys/dev/md/md.c +++ b/sys/dev/md/md.c @@ -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)) |