From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Mon, 05 Jan 2004 22:29:28 +0000 Subject: Re: Use /proc/ide/hdx files from udev [PATCH] Message-Id: <20040105222927.GD30464@kroah.com> List-Id: References: <1073154810.6053.15.camel@bigboy> In-Reply-To: <1073154810.6053.15.camel@bigboy> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mon, Jan 05, 2004 at 11:13:33PM +0100, Kay Sievers wrote: > On Sun, Jan 04, 2004 at 12:55:28AM -0800, Greg KH wrote: > > On Sat, Jan 03, 2004 at 01:33:31PM -0500, Raf D'Halleweyn wrote: > > > > > > The attached patch makes it possible to use files in the /proc/ide/hdx > > > directory in LABEL rules, e.g.: > > > > > > LABEL, BUS="ide", SYSFS_media="cdrom", NAME="cdrom" > > > > But your patch doesn't do this for only ide devices, does it? > > > > > I expect that those proc files are going to be moved into sysfs and at > > > that time, this patch will not be useful anymore. > > > For now we may simply use a CALLOUT rule: > > CALLOUT, BUS="ide", PROGRAM="/bin/cat /proc/ide/%k/media", ID="cdrom", NAME="%k", SYMLINK="cdrom" Ah, sweet, I like that rule. I think that just about sums up how flexible udev is right now :) I'll go add it to the default udev.rules file... thanks, greg k-h ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&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