From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Tue, 18 Nov 2003 01:00:22 +0000 Subject: Re: [udev] updated man, subdirs, ownership, namedev enum patches Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Sat, Nov 15, 2003 at 05:09:14PM +0100, Kay Sievers wrote: > On Thu, Nov 13, 2003 at 11:49:03AM -0800, Greg KH wrote: > > On Thu, Nov 13, 2003 at 09:30:08AM +0100, Kay Sievers wrote: > > > > Yes, it doesn't append the number when a label is specified for a > > > partition. But what when i want my partition labeled "data" not "data1" > > > LABEL, BUS="ide", size="117210177", NAME="data" > > > > Problem is, if you use the LABEL rule to match a device, like a SCSI > > vendor, then all of the partitions, as well as the main block device, > > will end up with the same name. That's why I added the "add the number" > > hack to the LABEL rule. > > > > So yes, your patch is correct in that we shouldn't always be adding the > > number to any match for LABEL (like for char devices), but if we do > > that, then we break partitions. Your '%' patch fixes this, but I'd just > > like to extend it a bit. Let me see what I can come up with... > > Oh, I see. Do you mean something like this: > > LABEL, BUS="usb", model="Creative Labs WebCam 3", NAME="webcam%n-%M:%m-test" > > results in: "webcam0-81:0-test" Very nice, this is exactly what I was thinking of. I've applied your patchs (the first one wasn't necessary, as I already did that a few days ago.) thanks again, I really appreciate the help. greg k-h ------------------------------------------------------- This SF. Net email is sponsored by: GoToMyPC GoToMyPC is the fast, easy and secure way to access your computer from any Web browser or wireless device. Click here to Try it Free! https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl _______________________________________________ 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