Messages in this thread | | | Subject | Re: udev LABEL not working: sysfs_path_is_file: stat() failed | From | Scott James Remnant <> | Date | Mon, 22 Dec 2003 10:58:45 +0000 |
| |
[I am not subscribed to linux-kernel or linux-hotplug-devel, please Cc: me on replies.]
On Mon, 2003-12-22 at 09:23, Greg KH wrote:
> On Mon, Dec 22, 2003 at 01:00:29AM +0000, Scott James Remnant wrote: > > > I'm having a problem getting udev to honour my LABEL lines > > 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... > It looks like this is what's happening, after tracing the code I added some stuff to print out everything in the sysfs directory at the time udev was running, and it is devoid of the vendor & model files which turn up shortly afterwards.
On the slower laptop, it works as expected.
One question though, it only ever seems to create a device for the actual usb-storage disk and not the partition. Is there some magic to create the partition device instead?
Scott -- Have you ever, ever felt like this? Had strange things happen? Are you going round the twist?
[unhandled content-type:application/pgp-signature] | |