From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Mon, 05 Jan 2004 22:13:33 +0000 Subject: Re: Use /proc/ide/hdx files from udev [PATCH] Message-Id: <20040105221333.GA9882@vrfy.org> 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 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" If this doesn't work for you, let us know. thanks, Kay ------------------------------------------------------- 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