From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephane Chauveau Date: Wed, 03 Dec 2003 19:19:44 +0000 Subject: Re: Re: pattern matching in udev Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org > > REGEXP "<$bus><$vendor><$id>"="<.*: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