Fix bug in pseudo-geometry calculation code that assumed a sector size
smaller then 1024 bytes.
This commit is contained in:
parent
32e29e4547
commit
e322ec4cb4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51580
@ -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