linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Re: pattern matching in udev
@ 2003-12-03 19:19 Stephane Chauveau
  2003-12-04  6:53 ` Patrick Mansfield
  0 siblings, 1 reply; 2+ messages in thread
From: Stephane Chauveau @ 2003-12-03 19:19 UTC (permalink / raw)
  To: linux-hotplug

> > REGEXP "<$bus><$vendor><$id>"="<scsi><ImageMate.*><.*:0:0:\(.*\)>",
> >              NAME="mem\1-%n"
>
> IMO the pattern matching should be part of the TOPOLOGY plus PLACE. 
>
> The scsi naming also requires a parent, your example above is only valid
> if you have one host adapter connected (or one usb mass storage device
> attached), there could exist another sd on *:0:0:0.

Not really because my example matches the $bus, the $id and the $vendor.
A single method capable of pattern matching on all the available informations 
could be used to replace all the methods currently in implemented in udev 
(except maybe REPLACE which has a different purpose). 

Stephane.







-------------------------------------------------------
This SF.net email is sponsored by OSDN's Audience Survey.
Help shape OSDN's sites and tell us what you think. Take this
five minute survey and you could win a $250 Gift Certificate.
http://www.wrgsurveys.com/2003/osdntech03.php?site=8
_______________________________________________
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] 2+ messages in thread

* Re: Re: pattern matching in udev
  2003-12-03 19:19 Re: pattern matching in udev Stephane Chauveau
@ 2003-12-04  6:53 ` Patrick Mansfield
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick Mansfield @ 2003-12-04  6:53 UTC (permalink / raw)
  To: linux-hotplug

On Wed, Dec 03, 2003 at 08:19:44PM +0100, Stephane Chauveau wrote:
> > > REGEXP "<$bus><$vendor><$id>"="<scsi><ImageMate.*><.*:0:0:\(.*\)>",
> > >              NAME="mem\1-%n"
> >
> > IMO the pattern matching should be part of the TOPOLOGY plus PLACE. 
> >
> > The scsi naming also requires a parent, your example above is only valid
> > if you have one host adapter connected (or one usb mass storage device
> > attached), there could exist another sd on *:0:0:0.
> 
> Not really because my example matches the $bus, the $id and the $vendor.

There could be another identical scsi device with the same id and vendor.

I thought the PCI sysfs id's were constant for a given hardware, but I'm
told they can change with PCI hotplug, so the full sysfs path I mentioned
previously will not be constant across boots with PCI hotplugging.

> A single method capable of pattern matching on all the available informations 
> could be used to replace all the methods currently in implemented in udev 
> (except maybe REPLACE which has a different purpose). 

-- Patrick Mansfield


-------------------------------------------------------
This SF.net email is sponsored by OSDN's Audience Survey.
Help shape OSDN's sites and tell us what you think. Take this
five minute survey and you could win a $250 Gift Certificate.
http://www.wrgsurveys.com/2003/osdntech03.php?site=8
_______________________________________________
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] 2+ messages in thread

end of thread, other threads:[~2003-12-04  6:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-03 19:19 Re: pattern matching in udev Stephane Chauveau
2003-12-04  6:53 ` Patrick Mansfield

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).