Fix bug in pseudo-geometry calculation code that assumed a sector size

smaller then 1024 bytes.
This commit is contained in:
dillon 1999-09-23 00:09:08 +00:00
parent eec6675661
commit fc40d2e20f
2 changed files with 2 additions and 2 deletions

View File

@ -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;
/*

View File

@ -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;
/*