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

smaller then 1024 bytes.
This commit is contained in:
Matthew Dillon 1999-09-23 00:09:08 +00:00
parent 32e29e4547
commit e322ec4cb4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51580
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;
/*