From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Wed, 21 Apr 2004 10:09:20 +0000 Subject: Re: Clarification on /etc/udev/rules.d processing Message-Id: <20040421100920.GA23501@vrfy.org> List-Id: References: <4085F187.2070003@backtobasicsmgmt.com> In-Reply-To: <4085F187.2070003@backtobasicsmgmt.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Tue, Apr 20, 2004 at 08:59:03PM -0700, Kevin P. Fleming wrote: > I've just started using udev, and I've decided I'd much rather have > individual config files for various purposes in /etc/udev/rules.d rather > than one combined file. > > From my reading of the code, it appears that udev always reads all the > files in that directory (which is good), and they are read in readdir() > order which should mean I can control the order by using alphanumeric > sorting of the names (also good). > > What I'm not clear on is how udev will handle multiple rules that match > for a given device: if more than one rule wants to provide a device > name, I presume udev will stop looking for device name rules as soon as > any rules matches, right? Yes. > In spite of that, rules that add symlinks to a > device seem to always be processed even if they appear in the file after > the rule that supplied the device name. No, if NAME is set by a rule, the processing is stopped. No later "symlink only" rule will be applied. thanks, Kay ------------------------------------------------------- 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