From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Sun, 29 Feb 2004 13:39:49 +0000 Subject: Re: NAME{all_partitions}, how does it work? Message-Id: <1078061988.1174.3.camel@pim> List-Id: References: <20040228194404.GA26312@sci.fi> In-Reply-To: <20040228194404.GA26312@sci.fi> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Sun, 2004-02-29 at 07:02, Anssi Saari wrote: > On Sat, Feb 28, 2004 at 09:19:50PM +0100, Kay Sievers wrote: > > > please try: > > > > BUS="scsi", SYSFS_vendor="6-in-1 ", SYSFS_model="CF/MD ", NAME{all_partitions}="cf%n" > > Thanks, it works now. > > > The attribute belongs to the NAME field not to a format char. > > It's mentioned in the man page :) > > Yes, I misunderstood the part saying this: > > The NAME field given with the attribute NAME{all_partitions} will create > all 15 partitions of a blockdevice. This may be useful for removable > media devices. > > I actually thought the NAME{all_partitions} referred to the device > name I had chosen. This was supported by the next part in the manpage, > "The NAME ,SYMLINK and PROGRAM fields support simple printf-like string > substitution". I sent a patch to the list, with the hope that it's better to understand now. I've also added a example to udev.rules.examples. thanks for pointing it out, Kay ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ 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