From: Kay Sievers <kay.sievers@vrfy.org>
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 14:11:03 +0000 [thread overview]
Message-ID: <20050908141103.GB30234@vrfy.org> (raw)
In-Reply-To: <200509081443.29756.thomasheinz@gmx.net>
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
next prev parent reply other threads:[~2005-09-08 14: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 [this message]
2005-09-08 15:11 ` Thomas Heinz
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=20050908141103.GB30234@vrfy.org \
--to=kay.sievers@vrfy.org \
--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).