linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: udev LABEL not working: sysfs_path_is_file: stat() failed
@ 2003-12-22  9:23 Greg KH
  2003-12-22 10:58 ` Scott James Remnant
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Greg KH @ 2003-12-22  9:23 UTC (permalink / raw)
  To: linux-hotplug

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-12-28  9:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-22  9:23 udev LABEL not working: sysfs_path_is_file: stat() failed Greg KH
2003-12-22 10:58 ` 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

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).