diff options
| author | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2004-05-18 07:30:04 +0000 |
|---|---|---|
| committer | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2004-05-18 07:30:04 +0000 |
| commit | 6a40892929655688bdfff5ab40e95eda6cc05a4e (patch) | |
| tree | f9bf42ebf8e73e9788c37eb9a4f894b8151c1dac | |
| parent | 826569ce35b75b8c6356bf1e634f05f2058dc1ba (diff) | |
Notes
| -rw-r--r-- | sys/dev/md/md.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index 3183a774601e..4b680d7ce03c 100644 --- a/sys/dev/md/md.c +++ b/sys/dev/md/md.c @@ -805,8 +805,7 @@ mdcreate_malloc(struct md_ioctl *mdio) sc->fwsectors = mdio->md_fwsectors; if (mdio->md_fwheads != 0) sc->fwheads = mdio->md_fwheads; - sc->nsect = mdio->md_size; - sc->nsect /= (sc->secsize / DEV_BSIZE); + sc->nsect = (mdio->md_size * DEV_BSIZE) / sc->secsize; sc->flags = mdio->md_options & (MD_COMPRESS | MD_FORCE); sc->indir = dimension(sc->nsect); sc->uma = uma_zcreate(sc->name, sc->secsize, |
