Fix bug in pseudo-geometry calculation code that assumed a sector size
smaller then 1024 bytes.
This commit is contained in:
parent
eec6675661
commit
fc40d2e20f
@ -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;
|
||||
|
||||
/*
|
||||
|
@ -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;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user