From: Thomas Heinz <thomasheinz@gmx.net>
To: linux-hotplug@vger.kernel.org
Subject: Re: cdrom_id (udev) causes "No disk in drive" warning for ide devices with removable media
Date: Thu, 08 Sep 2005 15:11:07 +0000 [thread overview]
Message-ID: <200509081711.08205.thomasheinz@gmx.net> (raw)
In-Reply-To: <200509081443.29756.thomasheinz@gmx.net>
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
next prev parent reply other threads:[~2005-09-08 15:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-08 12:43 cdrom_id (udev) causes "No disk in drive" warning for ide devices with removable media Thomas Heinz
2005-09-08 14:11 ` Kay Sievers
2005-09-08 15:11 ` Thomas Heinz [this message]
2005-09-08 15:38 ` Thomas Heinz
2005-09-08 19:18 ` Kay Sievers
2005-09-08 21:26 ` Thomas Heinz
2005-09-09 11:17 ` Kay Sievers
2005-09-14 22:34 ` Thomas Heinz
2005-09-14 23:21 ` Kay Sievers
2005-09-15 7:51 ` Thomas Heinz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200509081711.08205.thomasheinz@gmx.net \
--to=thomasheinz@gmx.net \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).