lkml.org 
[lkml]   [2001]   [Oct]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 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;
\
 
 \ /
  Last update: 2005-03-22 13:08    [W:0.053 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site