libata and bogus LBA48 drives
commit17bd9a2f4c35de29d2539a2ff6851d61be281e25
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 29 Oct 2007 20:21:37 +0000 (29 21:21 +0100)
committerJeff Garzik <jeff@garzik.org>
Mon, 5 Nov 2007 03:53:15 +0000 (4 22:53 -0500)
tree9119dc563f702644c4ca889a942f49be6a2fd18a
parentb55d1b1814c52463c11707f53dbdc223e09b2924
libata and bogus LBA48 drives

A colleague noticed recent versions of Ubuntu no longer detect his 80 GB
ST380020ACE drive. This drive is special in that it advertises LBA48 support,
but has the lba_capacity_2 field set to zero (cfr.
http://lkml.org/lkml/2004/3/30/163).

Upon closer look, libata indeed doesn't seem to handle this case yet.
Below is an (untested) fix.

Signed-off-by: Jeff Garzik <jeff@garzik.org>
include/linux/ata.h