From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Thu, 04 Mar 2004 19:03:36 +0000 Subject: Re: [PATCH] conditional remove of trailing sysfs whitespace Message-Id: <20040304190336.GC21508@kroah.com> 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 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