Re: [PATCH]: Sanity checking for drives that claim to be LBA-48, but aren't!

From: Eric W. Biederman (ebiederm@xmission.com)
Date: Thu Oct 17 2002 - 04:35:12 EST


James Finnie <jf1@IMERGE.co.uk> writes:

> The kernel sees this bit set, tries to use LBA-48 commands, and the drive
> errors, complaining that it doesn't understand! Meaning this drive is
> unusable with the >=2.4.19 kernels. I think at least one other person has
> reported something very similar, IIRC with a very old Maxtor IDE drive.
>
> Here is a patch that does some basic sanity checking. If the drive has an
> lba_capacity_2==0, and has the bit set claiming to be LBA-48, it ignores
> this claim.
>
There are also a set of bits that reports which revs of the ATA standard
a drive complies with. Should we check that one as well?

Eric
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Oct 23 2002 - 22:00:33 EST