From mboxrd@z Thu Jan 1 00:00:00 1970 From: ocomber Date: Thu, 28 Apr 2005 11:05:05 +0000 Subject: Re: udev & kernel names Message-Id: <1114686305.8757.431.camel@localhost.localdomain> List-Id: References: <20050426231516.GD2740@us.ibm.com> In-Reply-To: <20050426231516.GD2740@us.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Wed, 2005-04-27 at 09:05 -0700, Greg KH wrote: > > > Is there a better way to go about getting these useful log messages? > > Modify your syslog program to do it. > Would it be possible to call udev's parser directly? What I'm thinking is syslog Somehow (tm) knows it has a line with a device name in it. It could then call udev's parser to execute the appropriate rule, but instead of creating any devices, put udev's device name on standard output. Syslog could then substitute this into place on the log line. I'm sure a well crafted regular expression could split out the kernel device name to pass to the parser, and syslog then appends udev's idea of the device name to the line. If the udev parser returns nothing, you know your regex produced a red herring. > Oh, and what about the fact that I can create 2 device nodes in the fs > that really are the same kernel device? > > /me watches the ras developers get all agitated > > > If I need to clarify the problem/proposed solution further, please let > > me know. > > Please let me know who is trying to drive such a misguided and > ill-conceived issue and I will track them down... > > thanks, > > greg k-h > Thanks, -Oli ------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id5hix _______________________________________________ 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