Hi,
I don't know if it is related to this, but there seems to be general bug in
the cdrom-ide driver to get the exact size of a CD.
When reading a CD-image using dd, my system also locks up until I eject the CD
with the cdrom-drive-eject button.
I've already send the following patch to Jens Axboe, but so far he hasn't
answered yet:
diff -rbBu linux-2.4.19/drivers/ide/ide-cd.c
linux-2.4.19_mod/drivers/ide/ide-cd.c
--- linux-2.4.19/drivers/ide/ide-cd.c Sat Aug 3 02:39:44 2002
+++ linux-2.4.19_mod/drivers/ide/ide-cd.c Mon Sep 30 13:43:35 2002
@@ -1903,7 +1903,7 @@
stat = cdrom_queue_packet_command(drive, &pc);
if (stat == 0)
- *capacity = 1 + be32_to_cpu(capbuf.lba);
+ *capacity = be32_to_cpu(capbuf.lba) - 1;
return stat;
}
Please note that I got the correct value of *capacity empirically, since I
compered several values of the IDE-drive with the ones of my scsi drive.
Since I don't understand the cdrom_read_capacity() function (would be nice if
someone could explain me, where "capbuf.lba" gets its values and
what be32_to_cpu() does), I'm not 100% sure that the patch is correct.
Bernd
-- Bernd Schubert Physikalisch Chemisches Institut Abt. Theoretische Chemie INF 229, 69120 Heidelberg Tel.: 06221/54-5210 e-mail: bernd (dot) schubert (at) pci (dot) uni-heidelberg (dot) de- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/