]> git.hungrycats.org Git - linux/commit
[PATCH] ide-disk.c: workaround for bogus LBA48 drives
authorBartlomiej Zolnierkiewicz <b.zolnierkiewicz@elka.pw.edu.pl>
Tue, 13 Apr 2004 11:28:03 +0000 (04:28 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 13 Apr 2004 11:28:03 +0000 (04:28 -0700)
commit2ce4ee6a935c49f349042c223b991cd2be46e15d
tree177e6d2faa57d2a9d5f8831c1b5d1b26b0da84bc
parent9529973894d67d6529050348bb70464dc46c1d3d
[PATCH] ide-disk.c: workaround for bogus LBA48 drives

From: Geert Uytterhoeven <geert@linux-m68k.org>

Apparently some IDE drives (e.g. a pile of 80 GB ST380020ACE drives I have
access to) advertise to support LBA48, but don't, causing kernels that support
LBA48 (i.e. anything newer than 2.4.18, including 2.4.25 and 2.6.4) to fail on
them.  Older kernels (including 2.2.20 on the Debian woody CDs) work fine.

Check for id->lba_capacity_2 being non-zero in idedisk_supports_lba48().
drivers/ide/ide-disk.c