From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Mon, 16 Feb 2004 21:59:27 +0000 Subject: Re: [PATCH] udev - create all partitions of blockdevice Message-Id: <20040216215927.GC22823@kroah.com> List-Id: References: <20040216033452.GA3523@vrfy.org> In-Reply-To: <20040216033452.GA3523@vrfy.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mon, Feb 16, 2004 at 04:34:52AM +0100, Kay Sievers wrote: > Here is the first try to create all partitons of a blockdevice, since > removable media devices may need to acces the expected partition to > revalidate the media. > > It uses the attribute syntax introduced with the last %s{file} patch. > I'm using this with my multi-slot-flash-card-reader: > > SYSFS{model}="USB Storage-SMC ", NAME{all_partitions}="smartmedia" > SYSFS{model}="USB Storage-CFC ", NAME{all_partitions}="compactflash" > SYSFS{model}="USB Storage-MSC ", NAME{all_partitions}="memorystick" > SYSFS{model}="USB Storage-MMC ", NAME{all_partitions}="multimedia" > > and I get: > > tree /udev/ > /udev/ > |-- memorystick > |-- memorystick1 > |-- memorystick10 > |-- memorystick11 > |-- memorystick12 > |-- memorystick13 > |-- memorystick14 > |-- memorystick15 > |-- memorystick2 > |-- memorystick3 > |-- memorystick4 > |-- memorystick5 > |-- memorystick6 > |-- memorystick7 > |-- memorystick8 > |-- memorystick9 > |-- multimedia > |-- multimedia1 > |-- multimedia10 > |-- multimedia11 > |-- multimedia12 > |-- multimedia13 > |-- multimedia14 > |-- multimedia15 > |-- multimedia2 > |-- multimedia3 > |-- multimedia4 > |-- multimedia5 > |-- multimedia6 > |-- multimedia7 > |-- multimedia8 > |-- multimedia9 > ... > > > If needed, we can make the number of partions to create > adjustable with the attribute? Nice, this is great. I don't think we need to change the number of partitions. I've applied this, and checked in a fix for udev-add.c if 'fake' was true (which it is for udevtest). I'll go test this for my devices with partitions. thanks, greg k-h ------------------------------------------------------- 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