tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: WD_QUIRK_FORCE_LBA48
On Mon, Dec 14, 2009 at 04:27:51PM +0100, Manuel Bouyer wrote:
> > if (wd->sc_flags & WDF_LBA48 &&
> > - (wd->sc_wdc_bio.blkno > LBA48_THRESHOLD ||
> > + (wd->sc_wdc_bio.blkno +
> > + wd->sc_wdc_bio.bcount / wd->sc_dk.dk_label->d_secsize >
> > + LBA48_THRESHOLD ||
>
> but please make this (LBA48_THRESHOLD + 1). Otherwise the last
> LBA24 sector will be inaccessible on non-LBA48 controllers.
Actually I think someone pointed out that the max sector number
for LBA28 is sector 0xffffffe - the maximum value for the 'number of
sectors addressable with LBA28' is 0xfffffff.
David
--
David Laight: david%l8s.co.uk@localhost
Home |
Main Index |
Thread Index |
Old Index