From fc40d2e20f0b76e9734c856a4dfec0f5a4f45fa9 Mon Sep 17 00:00:00 2001 From: dillon Date: Thu, 23 Sep 1999 00:09:08 +0000 Subject: [PATCH] Fix bug in pseudo-geometry calculation code that assumed a sector size smaller then 1024 bytes. --- sys/dev/ccd/ccd.c | 2 +- sys/geom/geom_ccd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/ccd/ccd.c b/sys/dev/ccd/ccd.c index e13ac65c99fa..4037f793174c 100644 --- a/sys/dev/ccd/ccd.c +++ b/sys/dev/ccd/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; /* diff --git a/sys/geom/geom_ccd.c b/sys/geom/geom_ccd.c index e13ac65c99fa..4037f793174c 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; /*