Messages in this thread Patch in this message |  | | Date | Thu, 18 Oct 2001 08:16:09 +0200 | From | Jens Axboe <> | Subject | Re: IDE CDROM problems -- No medium found -- 2.4.12-ac3 |
| |
On Thu, Oct 18 2001, Enrico Scholz wrote: > sarnold@wirex.com (Seth Arnold) writes: > > > [...] > > mount will sometimes give: > > [...] > > $ mount /mnt/cdrom > > mount: No medium found > > ide-cd.c is broken since 2.4.1 and gives bad status reports on most > ATAPI drives. Perhaps the attached patch helps...
I just sent the right diff to Linus and Alan some days ago, it should look like this.
-- Jens Axboe
--- /opt/kernel/linux-2.4.10-pre11/drivers/ide/ide-cd.c Thu Aug 16 18:30:45 2001 +++ drivers/ide/ide-cd.c Mon Oct 15 18:54:52 2001 @@ -2409,7 +2409,7 @@ * any other way to detect this... */ if (sense.sense_key == NOT_READY) { - if (sense.asc == 0x3a && (!sense.ascq||sense.ascq == 1)) + if (sense.asc == 0x3a && sense.ascq == 1) return CDS_NO_DISC; else return CDS_TRAY_OPEN; |  |