From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Mon, 22 Dec 2003 09:23:29 +0000 Subject: Re: udev LABEL not working: sysfs_path_is_file: stat() failed Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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_id78&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