lkml.org 
[lkml]   [2001]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: IDE CDROM problems -- No medium found -- 2.4.12-ac3
Date
From
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...



Enrico
--- linux/drivers/ide/ide-cd.c.orig Tue May 29 11:24:24 2001
+++ linux/drivers/ide/ide-cd.c Tue May 29 11:25:44 2001
@@ -2319,10 +2319,7 @@
* any other way to detect this...
*/
if (sense.sense_key == NOT_READY) {
- if (sense.asc == 0x3a && (!sense.ascq||sense.ascq == 1))
- return CDS_NO_DISC;
- else
- return CDS_TRAY_OPEN;
+ if (sense.asc == 0x3a) return CDS_TRAY_OPEN;
}

return CDS_DRIVE_NOT_READY;
\
 
 \ /
  Last update: 2005-03-22 13:18    [W:0.089 / U:1.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site