diff options
author | dillon <dillon@FreeBSD.org> | 1999-09-23 00:09:08 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1999-09-23 00:09:08 +0000 |
commit | fc40d2e20f0b76e9734c856a4dfec0f5a4f45fa9 (patch) | |
tree | cfb69d7e2fd2b95f6d86b0a3fdcd6e6f47caf28e /sys/geom | |
parent | eec66756612ac54252ac4d819b3702182c4c059a (diff) | |
download | FreeBSD-src-fc40d2e20f0b76e9734c856a4dfec0f5a4f45fa9.zip FreeBSD-src-fc40d2e20f0b76e9734c856a4dfec0f5a4f45fa9.tar.gz |
Fix bug in pseudo-geometry calculation code that assumed a sector size
smaller then 1024 bytes.
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/geom_ccd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_ccd.c b/sys/geom/geom_ccd.c index e13ac65..4037f79 100644 --- a/sys/geom/geom_ccd.c +++ b/sys/geom/geom_ccd.c @@ -484,7 +484,7 @@ ccdinit(ccd, cpaths, p) */ ccg->ccg_secsize = maxsecsize; ccg->ccg_ntracks = 1; - ccg->ccg_nsectors = 1024 * (1024 / ccg->ccg_secsize); + ccg->ccg_nsectors = 1024 * 1024 / ccg->ccg_secsize; ccg->ccg_ncylinders = cs->sc_size / ccg->ccg_nsectors; /* |