Synced with sys/i386/isa/wd.c rev 1.218.
This commit is contained in:
parent
c32381ada4
commit
c95e192ba7
@ -1985,6 +1985,14 @@ wdgetctlr(struct disk *du)
|
||||
du->dk_dd.d_ncylinders =
|
||||
du->dk_dd.d_secperunit / du->dk_dd.d_secpercyl;
|
||||
}
|
||||
if (du->dk_dd.d_ncylinders > 0x10000 && !(du->cfg_flags & WDOPT_LBA)) {
|
||||
du->dk_dd.d_ncylinders = 0x10000;
|
||||
du->dk_dd.d_secperunit = du->dk_dd.d_secpercyl *
|
||||
du->dk_dd.d_ncylinders;
|
||||
printf(
|
||||
"wd%d: cannot handle %d total sectors; truncating to %lu\n",
|
||||
du->dk_lunit, wp->wdp_lbasize, du->dk_dd.d_secperunit);
|
||||
}
|
||||
#if 0
|
||||
du->dk_dd.d_partitions[RAW_PART].p_size = du->dk_dd.d_secperunit;
|
||||
/* dubious ... */
|
||||
|
Loading…
Reference in New Issue
Block a user