From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Thu, 08 Sep 2005 14:11:03 +0000 Subject: Re: cdrom_id (udev) causes "No disk in drive" warning for ide devices with removable media Message-Id: <20050908141103.GB30234@vrfy.org> 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 On Thu, Sep 08, 2005 at 02:43:29PM +0200, Thomas Heinz wrote: > The following gentoo rule is responsible for handling my ide zip drive > (ide-floppy driver). > > BUS="ide", KERNEL="hd[a-z]", ACTION="add", IMPORT="/sbin/cdrom_id > --export $tempnode" > > cdrom_id tries to open the device and the kernel outputs the message. > Debian seems to handle the issue differently with the following rule. > > BUS="ide", KERNEL="hd[a-z]", SYSFS{removable}="1", \ > PROGRAM="/etc/udev/scripts/ide-model.sh %k", RESULT="IOMEGA ZIP *", \ > NAME="%k", > OPTIONS+="all_partitions" > > > Do you consider it the distributors' job to fix the issue or would you > rather fix cdrom_id? cdrom_id itself can't know what kind of device it is before it has opened it. No idea why the kernel still prints this. I thought we removed all these stupid messages. It would be nice to have all the information available in /sys that is only in /proc, but the IDE maintainers are not really interested in proper driver core integration. Hopefully the libata effort will move everything including parallel ata to the scsi layer some day, which provides all what we need in /sys. You may try to add something like this to the ide cdrom_id rule: ... , PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom", ... I didn't test it and I don't remember if "cdrom" was the right value here. (I don't have cdrom in the last box that uses the old ide drivers.) Would be nice if you could test this? Thanks, Kay ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ 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