Re: 2.9test9-mm1 and DAO ATAPI cd-burning corrupt

Linus Torvalds
2003-11-12T01:14:39Z

On Wed, 12 Nov 2003, Pascal Schmidt wrote:
>
> My guess would be that an MO drive needs a different way to find out
> the capacity than a CD-ROM. After all, when using ide-scsi, it is the
> sd driver and not sr that handles the drive. The rest of the problems
> could be due to the wrong capacity information?

Yes. That would explain a lot.

The ide-scsi thing never uses "cdrom_get_last_written" crud. It just uses
the regular READ_CAPACITY command (0x25).

Which is what ide-cd.c will fall back to as well ("cdrom_read_capacity()")
but I think it should _start_ with that rather than fall back on it.
That's the simple case, after all.

Does it work if you change the order of those two things in ide-cd.c (or
just remove the call to "cdrom_get_last_written()" entirely, so that it
always just does the sane thing).

Linus