On Sun, Jan 14 2001, Martin Maciaszek wrote:
> Since I installed Kernel 2.4.0 VMware is no longer able to
> recognize my cdrom drive. VMware shows a dialog box on power up
> with following content:
> [...]
> CDROM: '/dev/scd0' exists, but does not appear tobe a CDROM device.
> 
> Error connecting the CDROM device
> [...]
> 
> At the same time my syslog records the following message:
> Jan 13 21:49:57 nexus kernel: sr0: CDROM (ioctl) reports ILLEGAL REQUEST.
> 
> I tried 2.2.18 and VMware recognized the cdrom drive.

Could you try with this patch, so maybe we can get some hints as to what
is going on?

-- 
* Jens Axboe <[EMAIL PROTECTED]>
* SuSE Labs
--- /opt/kernel/linux-2.4.0-ac9/drivers/scsi/sr_ioctl.c Fri Dec 29 23:07:22 2000
+++ drivers/scsi/sr_ioctl.c     Mon Jan 15 22:14:59 2001
@@ -161,10 +161,10 @@
                        } else {
                                err = -EINVAL;
                        }
-#ifdef DEBUG
-                       print_command(sr_cmd);
-                       print_req_sense("sr", SRpnt);
-#endif
+                       if (!quiet) {
+                               print_command(sr_cmd);
+                               print_req_sense("sr", SRpnt);
+                       }
                        break;
                default:
                        printk(KERN_ERR "sr%d: CDROM (ioctl) error, command: ", 
target);

Reply via email to