* Re: udev.rules syntax question
2004-11-23 0:45 udev.rules syntax question Jeremy Higdon
@ 2004-11-23 0:58 ` Kay Sievers
2004-11-23 7:02 ` Jeremy Higdon
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Kay Sievers @ 2004-11-23 0:58 UTC (permalink / raw)
To: linux-hotplug
On Mon, 2004-11-22 at 16:45 -0800, Jeremy Higdon wrote:
> Hello,
>
> I have a rules file with the following rules:
>
> BUS="scsi", PROGRAM="/sbin/udev_xscsi", SYMLINK="%c"
> BUS="scsi", PROGRAM="/sbin/udev.get_persistent_device_name.sh", NAME="%k" SYMLINK="%c{1+}"
>
>
> By my reading of the documentation, both rules should provide a symlink to
> the canonical name (/dev/sda, or whatever).
>
> However, I only get the symlinks from the second rule. If I change the first
> line to:
>
> BUS="scsi", PROGRAM="/sbin/udev_xscsi", NAME="%k" SYMLINK="%c"
>
>
> then I only get the symlink from the first rule.
That should work, right.
> I'm running udev version 021, if that makes a difference.
Huh, that's 9 months old, the whole project is 20 months old :)
So you may try an update, we are at v046 now :)
That may be the reason:
http://linuxusb.bkbits.net:8080/udev/cset@4061c688A1oxsmFdksypgMHPeY9kEA
Kay
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
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] 7+ messages in thread* Re: udev.rules syntax question
2004-11-23 0:45 udev.rules syntax question Jeremy Higdon
2004-11-23 0:58 ` Kay Sievers
@ 2004-11-23 7:02 ` Jeremy Higdon
2004-11-23 7:48 ` Greg KH
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Jeremy Higdon @ 2004-11-23 7:02 UTC (permalink / raw)
To: linux-hotplug
On Tue, Nov 23, 2004 at 01:58:06AM +0100, Kay Sievers wrote:
> On Mon, 2004-11-22 at 16:45 -0800, Jeremy Higdon wrote:
> > Hello,
> >
> > I have a rules file with the following rules:
> >
> > BUS="scsi", PROGRAM="/sbin/udev_xscsi", SYMLINK="%c"
> > BUS="scsi", PROGRAM="/sbin/udev.get_persistent_device_name.sh", NAME="%k" SYMLINK="%c{1+}"
> >
> >
> > By my reading of the documentation, both rules should provide a symlink to
> > the canonical name (/dev/sda, or whatever).
> >
> > However, I only get the symlinks from the second rule. If I change the first
> > line to:
> >
> > BUS="scsi", PROGRAM="/sbin/udev_xscsi", NAME="%k" SYMLINK="%c"
> >
> >
> > then I only get the symlink from the first rule.
>
> That should work, right.
>
> > I'm running udev version 021, if that makes a difference.
>
> Huh, that's 9 months old, the whole project is 20 months old :)
> So you may try an update, we are at v046 now :)
>
> That may be the reason:
> http://linuxusb.bkbits.net:8080/udev/cset@4061c688A1oxsmFdksypgMHPeY9kEA
I'd like to upgrade, but I need to work with what's in SLES9.
That change along with the one before and after took care of the problem.
I thought I was following the rules in the manpage :-)
Thanks for the reply,
jeremy
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
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] 7+ messages in thread* Re: udev.rules syntax question
2004-11-23 0:45 udev.rules syntax question Jeremy Higdon
2004-11-23 0:58 ` Kay Sievers
2004-11-23 7:02 ` Jeremy Higdon
@ 2004-11-23 7:48 ` Greg KH
2004-11-23 8:53 ` Hannes Reinecke
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2004-11-23 7:48 UTC (permalink / raw)
To: linux-hotplug
On Mon, Nov 22, 2004 at 11:02:20PM -0800, Jeremy Higdon wrote:
>
> I'd like to upgrade, but I need to work with what's in SLES9.
> That change along with the one before and after took care of the problem.
> I thought I was following the rules in the manpage :-)
You were, those patches were bugfixes :)
You might want to pester SuSE to fix this in their next SLES9 service
pack release.
thanks,
greg k-h
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
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] 7+ messages in thread* Re: udev.rules syntax question
2004-11-23 0:45 udev.rules syntax question Jeremy Higdon
` (2 preceding siblings ...)
2004-11-23 7:48 ` Greg KH
@ 2004-11-23 8:53 ` Hannes Reinecke
2004-11-23 8:58 ` Kay Sievers
2004-11-23 9:17 ` Hannes Reinecke
5 siblings, 0 replies; 7+ messages in thread
From: Hannes Reinecke @ 2004-11-23 8:53 UTC (permalink / raw)
To: linux-hotplug
Kay Sievers wrote:
> On Mon, 2004-11-22 at 16:45 -0800, Jeremy Higdon wrote:
>
>>Hello,
>>
>>I have a rules file with the following rules:
>>
>>BUS="scsi", PROGRAM="/sbin/udev_xscsi", SYMLINK="%c"
>>BUS="scsi", PROGRAM="/sbin/udev.get_persistent_device_name.sh", NAME="%k" SYMLINK="%c{1+}"
>>
>>
>>By my reading of the documentation, both rules should provide a symlink to
>>the canonical name (/dev/sda, or whatever).
>>
>>However, I only get the symlinks from the second rule. If I change the first
>>line to:
>>
>>BUS="scsi", PROGRAM="/sbin/udev_xscsi", NAME="%k" SYMLINK="%c"
>>
>>
>>then I only get the symlink from the first rule.
>
>
> That should work, right.
>
Should it? IIRC the parsing stops after the first matched rule. Or has
this behaviour changed?
>
>>I'm running udev version 021, if that makes a difference.
>
>
> Huh, that's 9 months old, the whole project is 20 months old :)
> So you may try an update, we are at v046 now :)
>
> That may be the reason:
> http://linuxusb.bkbits.net:8080/udev/cset@4061c688A1oxsmFdksypgMHPeY9kEA
>
>
Ok, you're correct. I will put that in. Jeremy, care to open a SuSE
bugzilla?
Cheers,
Hannes
--
Dr. Hannes Reinecke hare@suse.de
SuSE Linux AG S390 & zSeries
Maxfeldstraße 5 +49 911 74053 688
90409 Nürnberg http://www.suse.de
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
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] 7+ messages in thread* Re: udev.rules syntax question
2004-11-23 0:45 udev.rules syntax question Jeremy Higdon
` (3 preceding siblings ...)
2004-11-23 8:53 ` Hannes Reinecke
@ 2004-11-23 8:58 ` Kay Sievers
2004-11-23 9:17 ` Hannes Reinecke
5 siblings, 0 replies; 7+ messages in thread
From: Kay Sievers @ 2004-11-23 8:58 UTC (permalink / raw)
To: linux-hotplug
On Tue, 2004-11-23 at 09:53 +0100, Hannes Reinecke wrote:
> Kay Sievers wrote:
> > On Mon, 2004-11-22 at 16:45 -0800, Jeremy Higdon wrote:
> >
> >>Hello,
> >>
> >>I have a rules file with the following rules:
> >>
> >>BUS="scsi", PROGRAM="/sbin/udev_xscsi", SYMLINK="%c"
> >>BUS="scsi", PROGRAM="/sbin/udev.get_persistent_device_name.sh", NAME="%k" SYMLINK="%c{1+}"
> >>
> >>
> >>By my reading of the documentation, both rules should provide a symlink to
> >>the canonical name (/dev/sda, or whatever).
> >>
> >>However, I only get the symlinks from the second rule. If I change the first
> >>line to:
> >>
> >>BUS="scsi", PROGRAM="/sbin/udev_xscsi", NAME="%k" SYMLINK="%c"
> >>
> >>
> >>then I only get the symlink from the first rule.
> >
> >
> > That should work, right.
> >
> Should it? IIRC the parsing stops after the first matched rule. Or has
> this behaviour changed?
No, we have this a long time. It is called "symlink only rule". You can
collect matching rules with only SYMLINK and no NAME, all symlinks are
going to be appended to the symlink string of the finally matching rule.
It's in the man page.
Best,
Kay
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
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] 7+ messages in thread* Re: udev.rules syntax question
2004-11-23 0:45 udev.rules syntax question Jeremy Higdon
` (4 preceding siblings ...)
2004-11-23 8:58 ` Kay Sievers
@ 2004-11-23 9:17 ` Hannes Reinecke
5 siblings, 0 replies; 7+ messages in thread
From: Hannes Reinecke @ 2004-11-23 9:17 UTC (permalink / raw)
To: linux-hotplug
Kay Sievers wrote:
> On Tue, 2004-11-23 at 09:53 +0100, Hannes Reinecke wrote:
>
>>
>>Should it? IIRC the parsing stops after the first matched rule. Or has
>>this behaviour changed?
>
>
> No, we have this a long time. It is called "symlink only rule". You can
> collect matching rules with only SYMLINK and no NAME, all symlinks are
> going to be appended to the symlink string of the finally matching rule.
> It's in the man page.
>
So I'll better fix it then :-)
Cheers,
Hannes
--
Dr. Hannes Reinecke hare@suse.de
SuSE Linux AG S390 & zSeries
Maxfeldstraße 5 +49 911 74053 688
90409 Nürnberg http://www.suse.de
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
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] 7+ messages in thread