Re: BUG in the block layer (partial reads not reported)

From: Helge Hafting
Date: Sun Oct 23 2005 - 17:10:04 EST


On Fri, Oct 21, 2005 at 06:31:57PM +0100, Alan Cox wrote:
>
> The essential problem however is that if you say a disc is a given size
> and it turns out not to be (as happens with CD-R especially or with
> buggy readers) then Linux block layer can't cope. Its well known and
> causes endless problems for CD-R users with some IDE drives on Linux.
> Its a big generator of 2.6 vendor bug reports.
>
Seems to me that the best fix for devices that may reïport the wrong size
is to always use a foolproof way of determining the size. I.e. when
a CD-R cannot be trusted, determine the size by trying to read the
last sectors instead of using the reported number.

Helge Hafting
-
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/