* Re: udev LABEL not working: sysfs_path_is_file: stat() failed
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
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Scott James Remnant @ 2003-12-22 10:58 UTC (permalink / raw)
To: linux-hotplug
[-- 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 --]
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: udev LABEL not working: sysfs_path_is_file: stat() failed
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
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Greg KH @ 2003-12-22 20:40 UTC (permalink / raw)
To: linux-hotplug
On Mon, Dec 22, 2003 at 10:58:45AM +0000, Scott James Remnant wrote:
> 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?
Do you have a partition show up in /sys/block? If not, then udev will
not create it. It works here for my usb-storage devices that have
partitions on them.
thanks,
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* Re: udev LABEL not working: sysfs_path_is_file: stat() failed
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
4 siblings, 0 replies; 6+ messages in thread
From: Scott James Remnant @ 2003-12-23 7:29 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 718 bytes --]
On Mon, 2003-12-22 at 20:40, Greg KH wrote:
> On Mon, Dec 22, 2003 at 10:58:45AM +0000, Scott James Remnant wrote:
> > 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?
>
> Do you have a partition show up in /sys/block? If not, then udev will
> not create it. It works here for my usb-storage devices that have
> partitions on them.
>
Yes, /dev/block/sdb/sdb1 certainly does appear, as does /udev/sdb1 --
the LABEL rule only seems to match "sdb" though.
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 --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: udev LABEL not working: sysfs_path_is_file: stat() failed
2003-12-22 9:23 udev LABEL not working: sysfs_path_is_file: stat() failed Greg KH
` (2 preceding siblings ...)
2003-12-23 7:29 ` Scott James Remnant
@ 2003-12-23 22:13 ` Greg KH
2003-12-28 9:11 ` Scott James Remnant
4 siblings, 0 replies; 6+ messages in thread
From: Greg KH @ 2003-12-23 22:13 UTC (permalink / raw)
To: linux-hotplug
On Tue, Dec 23, 2003 at 07:29:07AM +0000, Scott James Remnant wrote:
> On Mon, 2003-12-22 at 20:40, Greg KH wrote:
>
> > On Mon, Dec 22, 2003 at 10:58:45AM +0000, Scott James Remnant wrote:
> > > 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?
> >
> > Do you have a partition show up in /sys/block? If not, then udev will
> > not create it. It works here for my usb-storage devices that have
> > partitions on them.
> >
> Yes, /dev/block/sdb/sdb1 certainly does appear, as does /udev/sdb1 --
> the LABEL rule only seems to match "sdb" though.
That's odd, what is the rule? They should both match.
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* Re: udev LABEL not working: sysfs_path_is_file: stat() failed
2003-12-22 9:23 udev LABEL not working: sysfs_path_is_file: stat() failed Greg KH
` (3 preceding siblings ...)
2003-12-23 22:13 ` Greg KH
@ 2003-12-28 9:11 ` Scott James Remnant
4 siblings, 0 replies; 6+ messages in thread
From: Scott James Remnant @ 2003-12-28 9:11 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 1072 bytes --]
On Tue, 2003-12-23 at 22:13, Greg KH wrote:
> On Tue, Dec 23, 2003 at 07:29:07AM +0000, Scott James Remnant wrote:
> > On Mon, 2003-12-22 at 20:40, Greg KH wrote:
> >
> > > On Mon, Dec 22, 2003 at 10:58:45AM +0000, Scott James Remnant wrote:
> > > > 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?
> > >
> > > Do you have a partition show up in /sys/block? If not, then udev will
> > > not create it. It works here for my usb-storage devices that have
> > > partitions on them.
> > >
> > Yes, /dev/block/sdb/sdb1 certainly does appear, as does /udev/sdb1 --
> > the LABEL rule only seems to match "sdb" though.
>
> That's odd, what is the rule? They should both match.
>
Had omitted the %n in the NAME, so only the disk was showing up.
udev-011 fixes the original problem too, thanks.
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 --]
^ permalink raw reply [flat|nested] 6+ messages in thread