From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ihno Krumreich Date: Thu, 04 Dec 2003 10:29:39 +0000 Subject: Re: pattern matching in udev Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Thu, Dec 04, 2003 at 10:51:32AM +0100, Olaf Hering wrote: > On Wed, Dec 03, Patrick Mansfield wrote: >=20 > > On Wed, Dec 03, 2003 at 08:19:44PM +0100, Stephane Chauveau wrote: > > > > > REGEXP "<$bus><$vendor><$id>"=3D"<.*:0:0:\(.*\= )>", > > > > > NAME=3D"mem\1-%n" > > > > > > > > IMO the pattern matching should be part of the TOPOLOGY plus PLACE.= =20 > > > > > > > > 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 dev= ice > > > > attached), there could exist another sd on *:0:0:0. > > >=20 > > > Not really because my example matches the $bus, the $id and the $vend= or. > >=20 > > There could be another identical scsi device with the same id and vendo= r. > >=20 > > 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 mention= ed > > previously will not be constant across boots with PCI hotplugging. >=20 > You cant have everything. How do you describe a filesystem to mount: > Its either the location, then the content may change, or it is the > content, then the location can change (content in the sense of fs UUID). >=20 > And in the case of pci cards, there is no need for PCI hotplug. Just > open your PC and move the SCSI card from slot a to slot b. result: > device node doesnt match if you go for location. I think the primary goal should be that adding and removing of devices (or controllers) does not change the name of the old/remaning devices. If you open the PC and redistribute the PCI-Cards to the PCI-slots you can expect that something changed. Ihno --=20 Best regards/Mit freundlichen Gr=FC=DFen Ihno Krumreich "Never trust a computer you can lift." -- Ihno Krumreich ihno@suse.de SuSE Linux AG Projectmanager S390 & zSeries Deutschherrnstr. 15-19 +49-911-74053-439 90429 N=FCrnberg http://www.suse.de ------------------------------------------------------- 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=3D8 _______________________________________________ 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