Re: IDE CDROM and dd...

From: Andries Brouwer (aeb@veritas.com)
Date: Wed Jun 07 2000 - 21:56:29 EST


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/



This archive was generated by hypermail 2b29 : Thu Jun 15 2000 - 21:00:16 EST