From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: udev LABEL not working: sysfs_path_is_file: stat() failed
Date: Mon, 22 Dec 2003 09:23:29 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-107208562713799@msgid-missing> (raw)
On Mon, Dec 22, 2003 at 01:00:29AM +0000, Scott James Remnant wrote:
> [I am not subscribed to linux-kernel, please Cc: me on replies.]
The linux-hotplug-devel mailing list is best place for questions about
udev, not lkml...
> I'm having a problem getting udev to honour my LABEL lines in
> /etc/udev/udev.rules. At the top of this I've got:
>
> LABEL, BUS="usb", SYSFS_vendor="Fujifilm", SYSFS_model="FinePix 1400Zoom", NAME="camera"
Try changing BUS="usb" to BUS="scsi". Also make sure that the model
file doesn't contain any trailing spaces. That's a very common thing on
usb devices.
And you are trying to match up 2 files, right now udev only supports 1,
so the last one (model) is used. The vendor rule there is ignored.
There is also a problem with udev beating the kernel. It can easily get
the hotplug event before the kernel has created the sysfs file. I'm
currently working on fixing this in udev, should have it done by the
next release. You can tell if you are seeing this race by just running
the test.block script in the test directory in udev. If your device
node is created properly with that script, but not when you plug the
device in, you have that problem.
And people tried to tell us that the hotplug interface was slow without
ever testing it out...
Hope this helps,
greg k-h
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id\x1278&alloc_id371&op=click
_______________________________________________
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 reply other threads:[~2003-12-22 9:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-22 9:23 Greg KH [this message]
2003-12-22 10:58 ` udev LABEL not working: sysfs_path_is_file: stat() failed Scott James Remnant
2003-12-22 20:40 ` Greg KH
2003-12-23 7:29 ` Scott James Remnant
2003-12-23 22:13 ` Greg KH
2003-12-28 9:11 ` Scott James Remnant
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=marc-linux-hotplug-107208562713799@msgid-missing \
--to=greg@kroah.com \
--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).