From: Duncan Sands Date: Tue, 06 Sep 2005 19:21:07 +0000 Subject: Re: firmware.agent and trailing newlines Message-Id: <200509062121.07827.baldrick@free.fr> List-Id: References: <200509021341.54762.baldrick@free.fr> In-Reply-To: <200509021341.54762.baldrick@free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hi Greg, On Sunday 04 September 2005 18:07, Greg KH wrote: > On Fri, Sep 02, 2005 at 01:41:54PM +0200, Duncan Sands wrote: > > (B) Is whitespace stripped off values written to > > sysfs attributes? If so, why? What if you want > > trailing/leading spaces? What about trailing > > newlines - are they stripped? Should they be? > > What is the policy/rationale on sysfs attributes > > and whitespace? > > There is a patch in my tree, and in -mm that does this (incorrectly too, > I have an update from it from the author.) However I'm going to just > drop it entirely, as we should not be stripping stuff like this from the > kernel. I am guessing that Ubuntu put this patch in their kernel? it turned out that the problem was due to having /sbin/hotplug rather than /sbin/udevsend in /proc/sys/kernel/hotplug, leading to two copies of firmware.agent being run in parallel. Changing echo to echo -n must have changed the timing slightly, causing things to work for a while, though not for long :-/ I should have debugged the problem more thoroughly rather than shooting from the hip - sorry about that. Best wishes, Duncan. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ 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