summaryrefslogtreecommitdiff
path: root/sys/dev/md/md.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2004-03-02 20:13:23 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2004-03-02 20:13:23 +0000
commit9ed40643ea14a03ac9b47be7fc789f1dff87208e (patch)
treed5e46a7c4fd1bf4ab5485f65b1d801ed6ad57439 /sys/dev/md/md.c
parent1b629e865eaaad178e515a7bf0fbf73b847cc6d6 (diff)
Notes
Diffstat (limited to 'sys/dev/md/md.c')
-rw-r--r--sys/dev/md/md.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index 1d66856edd7b..4564aa690d6e 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -1050,6 +1050,10 @@ mdcreate_swap(struct md_ioctl *mdio, struct thread *td)
sc->secsize = DEV_BSIZE;
sc->npage = mdio->md_size / (PAGE_SIZE / DEV_BSIZE);
sc->nsect = sc->npage * (PAGE_SIZE / DEV_BSIZE);
+ if (mdio->md_fwsectors != 0)
+ sc->fwsectors = mdio->md_fwsectors;
+ if (mdio->md_fwheads != 0)
+ sc->fwheads = mdio->md_fwheads;
sc->object = vm_pager_allocate(OBJT_SWAP, NULL, PAGE_SIZE *
(vm_offset_t)sc->npage, VM_PROT_DEFAULT, 0);
sc->flags = mdio->md_options & MD_FORCE;