Re: IDE CDROM problems -- No medium found -- 2.4.12-ac3

Jens Axboe (axboe@suse.de)
Thu, 18 Oct 2001 08:16:09 +0200


--jRHKVT23PllUwdXP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

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

--jRHKVT23PllUwdXP Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=ide-cd-tray-1

--- /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;

--jRHKVT23PllUwdXP-- - 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/