From d5a929dc171e752ceadbca78b71abb2600b8edca Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Mon, 12 Jan 2004 10:52:00 +0000 Subject: [PATCH] Allow specification of a geometry for vnode backed devices as well as for malloc backed devices. --- sys/dev/md/md.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index 06976f5a745..b0f179504d8 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))