Oops, only apply the CHS size from lbasize thing when disk reports
"too big for CHS" ie 16383 cyls..
This commit is contained in:
parent
6543414337
commit
e855c8bedc
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)wd.c 7.2 (Berkeley) 5/9/91
|
||||
* $Id: wd.c,v 1.165 1998/05/06 22:14:42 julian Exp $
|
||||
* $Id: wd.c,v 1.166 1998/05/07 01:15:23 julian Exp $
|
||||
*/
|
||||
|
||||
/* TODO:
|
||||
@ -2091,7 +2091,8 @@ failed:
|
||||
du->dk_dd.d_ntracks * du->dk_dd.d_nsectors;
|
||||
du->dk_dd.d_secperunit =
|
||||
du->dk_dd.d_secpercyl * du->dk_dd.d_ncylinders;
|
||||
if (du->dk_dd.d_secperunit < wp->wdp_lbasize) {
|
||||
if (wp->wdp_cylinders == 16383 &&
|
||||
du->dk_dd.d_secperunit < wp->wdp_lbasize) {
|
||||
du->dk_dd.d_secperunit = wp->wdp_lbasize;
|
||||
du->dk_dd.d_ncylinders =
|
||||
du->dk_dd.d_secperunit / du->dk_dd.d_secpercyl;
|
||||
|
Loading…
x
Reference in New Issue
Block a user