From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bob Barry Date: Wed, 17 Mar 2004 08:33:30 +0000 Subject: Re: renaming causes incorrect device creation Message-Id: <200403171033.30553.bobb@absamail.co.za> List-Id: References: <20040317021453.GA13348@perl.xsdg.org> In-Reply-To: <20040317021453.GA13348@perl.xsdg.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Wednesday 17 March 2004 09:44, Bob Barry wrote: > So I changed the rule and it works again: > BUS="usb", KERNEL="sd*", SYSFS{product}="Sony DSC" NAME="%k" SYMLINK="camera" That still wasn't really right. Using udevtest in a loop for all "udevinfo -d" devices showed that the camera symlink was being created twice (for sda and sda1) with the last one prevailing. Without the "KERNEL" qualification, it was getting created three times, and sg2 prevailed. Changing the "KERNEL" qualification to "sd??" eliminates spurious symlink creation: BUS="usb", KERNEL="sd??", SYSFS{product}="Sony DSC" NAME="%k" SYMLINK="camera" ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&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