Synced with sys/i386/isa/wd.c rev 1.218.

This commit is contained in:
KATO Takenori 2000-01-29 04:42:49 +00:00
parent c32381ada4
commit c95e192ba7

View File

@ -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 ... */