From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott James Remnant Date: Mon, 22 Dec 2003 10:58:45 +0000 Subject: Re: udev LABEL not working: sysfs_path_is_file: stat() failed MIME-Version: 1 Content-Type: multipart/mixed; boundary="=-4hTocWRUJWzrs47VkYdy" Message-Id: List-Id: References: In-Reply-To: To: linux-hotplug@vger.kernel.org --=-4hTocWRUJWzrs47VkYdy Content-Type: text/plain Content-Transfer-Encoding: quoted-printable [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: >=20 > > I'm having a problem getting udev to honour my LABEL lines >=20 > 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. >=20 > And people tried to tell us that the hotplug interface was slow without > ever testing it out... >=20 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 --=20 Have you ever, ever felt like this? Had strange things happen? Are you going round the twist? --=-4hTocWRUJWzrs47VkYdy Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQA/5s5kIexP3IStZ2wRAo4MAJ94D9f6reQ277jV4iHX43sgnoTB6wCeL70F sSBxZ4kFyX/HEzizZNUPzP0= =+Fa7 -----END PGP SIGNATURE----- --=-4hTocWRUJWzrs47VkYdy-- ------------------------------------------------------- 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=1278&alloc_id=3371&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