Linux-kernel mailing list archive 2000-23,: Re: IDE CDROM and dd...

# Re: IDE CDROM and dd...

Andries Brouwer (aeb@veritas.com)
Thu, 8 Jun 2000 04:56:29 +0200

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: James H. Cloos Jr.: "aic in pre1-ac"
- Previous message: Jeff Garzik: "2.4.0-test1-ac10: NFS unmount fails"

On Thu, Jun 08, 2000 at 04:12:41AM +0200, Jens Axboe wrote:

> > In test #2, the ISO was read 100%, and then dd failed.
>
> I believe this is fixed in 2.2.16, it was an off-by-one bug in
> the capacity.

I just tested a CD on 2.3.99p9. It gave EIO on dd at the end.
Comparing with the image from which it was burnt, I see:
- image has 298204 2048-byte blocks
- cdrom_read_capacity reads toc->capacity = 298206
- consequently, it is not surprising that the kernel tries
to read 8 512-byte sectors past the end and gets errors;
precisely the same ones Jeff reported.

The CD was burnt with cdwrite, I think. Maybe the kernel
and cdwrite have different ideas about toc->capacity.

Andries

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

- Next message: James H. Cloos Jr.: "aic in pre1-ac"
- Previous message: Jeff Garzik: "2.4.0-test1-ac10: NFS unmount fails"