From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Raf D'Halleweyn" Date: Thu, 04 Mar 2004 20:05:27 +0000 Subject: Re: [PATCH] conditional remove of trailing sysfs whitespace Message-Id: <1078430727.26549.1.camel@base> List-Id: References: <20040304124223.GA16249@vrfy.org> In-Reply-To: <20040304124223.GA16249@vrfy.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Except if you have two devices with "Vendor" and "Vendor "... Raf. On Thu, 2004-03-04 at 14:03, Greg KH wrote: > On Thu, Mar 04, 2004 at 01:42:23PM +0100, Kay Sievers wrote: > > Hey, it may never happen, that one wants to distinguish attributes by > > trailing spaces, but we should not lose the control over it, just for > > being lazy :) > > > > Here we remove the trailing spaces of the sysfs attribute only if the > > configured value to match doesn't have any trailing spaces by itself. > > So if you put a attribute in a rule with spaces at the end, the sysfs > > attribute _must_ match exactly. > > > > Is that cool for everyone? > > > > As usual, 2 tests are added for it with a artificial sysfs file and > > a few words to the man page. > > Very nice solution. This should make everyone happen, as it will "just > work" for whatever people want it to do, no config option needed. > > thanks so much, > > greg k-h ------------------------------------------------------- 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