From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Heinz Date: Wed, 14 Sep 2005 22:34:47 +0000 Subject: Re: cdrom_id (udev) causes "No disk in drive" warning for ide devices with removable media Message-Id: <200509150034.47906.thomasheinz@gmx.net> List-Id: References: <200509081443.29756.thomasheinz@gmx.net> In-Reply-To: <200509081443.29756.thomasheinz@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hi Kay You wrote: > > Interestingly, I found out that the kernel message is generated on > > close(fd) (line 151). > > Hmm, no idea. I tested it remotely on a few boxes with a SCSI cdrom > and none of them prints anything on a cdrom_id run. On close(), scsi_set_medium_removal() is called which again calls ioctl_internal_command(). The scsi request is initiated here: http://lxr.linux.no/source/drivers/scsi/scsi_ioctl.c#L109 It "returns" NOT_READY which effectively causes the kernel message. In order to avoid the message during bootup, I have defined some rules before the default rule set which mimic the effect of executing cdrom_id without actually doing it. The execution of the default rule set for the specific scsi device is avoided by the last_rule option. Since only one of my scsi cdrom devices behaves like this (and moreover you could not reproduce the behaviour), it is probably not a general problem. What do you suggest to further track the problem down? Regards, Thomas ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel