From: Scott James Remnant <scott@netsplit.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: udev LABEL not working: sysfs_path_is_file: stat() failed
Date: Mon, 22 Dec 2003 10:58:45 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-107209075303020@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-107208562713799@msgid-missing>
[-- Attachment #1: Type: text/plain, Size: 1452 bytes --]
[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?
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2003-12-22 10:58 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
-- strict thread matches above, loose matches on Subject: below --
2003-12-22 1:00 Scott James Remnant
2003-12-22 9:23 ` 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
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-107209075303020@msgid-missing \
--to=scott@netsplit.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.