Re: Recent 2.6 kernels can't read an entire ATAPI CD or DVD

From: Jens Axboe
Date: Thu Jul 29 2004 - 03:54:16 EST


On Wed, Jul 28 2004, Bryan O'Sullivan wrote:
> On Wed, 2004-07-28 at 19:05 +0200, Jens Axboe wrote:
>
> > On this thread, I agree it's
> > probably a kernel issue. Can you check what capacity isosize gives you
> > on the device, and what /proc/ide/hdc/capacity tells you?
>
> This is a basically unpatched 2.6.7 kernel:
>
> ~ # uname -a
> Linux abcd.serpentine.com 2.6.7-1.1791-up #1 Sat Jul 10 14:22:15 PDT
> 2004 i686 athlon i386 GNU/Linux
>
> ~ # isosize /dev/hdc
> 8164939776
>
> ~ # cat /proc/ide/hdc/capacity
> 15947148

Looks pretty perfect, maybe it's read-ahead screwing it up. Try if
setting hdparm -a0 /dev/hdc makes a difference.

--
Jens Axboe

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