From: Thomas Heinz Date: Thu, 08 Sep 2005 15:11:07 +0000 Subject: Re: cdrom_id (udev) causes "No disk in drive" warning for ide devices with removable media Message-Id: <200509081711.08205.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, thanks for your quick response. You wrote: > 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 appears that the error message comes from drivers/ide/ide-floppy.c. Both idefloppy_setup() and idefloppy_open() call idefloppy_capacity which in turn outputs the message. So either the printk() should be removed or the logic should be changed somehow assuming that there is some case where the output makes sense. > 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? Good idea, works nicely. I will suggest this modification to the gentoo maintainers. Best regards, Thomas ------------------------------------------------------- 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