From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Sun, 23 Nov 2003 06:03:53 +0000 Subject: Re: [udev] namedev.c - change order of fields in CALLOUT Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Fri, Nov 21, 2003 at 04:26:44AM +0100, Arnd Bergmann wrote: > On Friday 21 November 2003 18:08, Kay Sievers wrote: > > Fine, please don't forget to mention it with the next release, > > cause people need to change their config file if CALLOUT was used before. > > > > Maybe we should put a line in the example config too, that says: > > "The order of the fields does matter." > > I needed approx. 10 minutes to realize :) > > Hmm, maybe the order /shouldn't/ matter, then. I already thought about > making a patch that lets you have some other interesting fields, without > the order mattering at all. E.g. > > # no ID=, but DRIVER> CALLOUT, DRIVER="dasd-eckd", PROGRAM="/sbin/dasdname", NAME="%c" > > # new CLASS=, NAME= first > REPLACE, NAME="tape/norewind/nst%n", CLASS="tape", KERNEL_NAME="nst*" That would be nice. As you can probably tell, I don't like writing parsers :) > Btw, can someone explain to me the difference between TOPOLOGY and NUMBER? > The documentation suggests that they are used differently, but I > could not find any difference in the code. I need to get some more stuff from libsysfs in order to make these two rules different. You are correct, right now they are pretty much the same, due to USB devices putting the topology in the device number, which is what I had on hand to demo for OLS 2003. thanks, greg k-h ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ 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