From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin Schwenke" Date: Wed, 27 Apr 2005 23:01:29 +0000 Subject: Re: udev & kernel names Message-Id: <17008.6601.782912.841235@rover.ozlabs.ibm.com> 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 >>>>> "Greg" = Greg KH writes: >> Is there a better way to go about getting these useful log >> messages? Greg> Modify your syslog program to do it. /me dons asbestos suit... :-) ... and we've had the following conversation before, but let me try to put it more clearly right here. Kernel names are evil. They look like device names, but they are not device names. They are kernel names. Device names are created in userspace and the kernel has no knowledge of them. The confusion occurs because they look the same (or similar)... A nicer solution would be to log different canonical labels for devices, and pass these to udev. For SCSI devices this could be something like "scsi/1:2:3:4" or even sd/major,minor - it doesn't matter too much. In a previous conversation (or more :-) you pointed out that the kernel name is a canonical label and that's good enough. One reason why it isn't good enough is that people keep getting confused between kernel names and devices names. When they do this they suggest passing the device name back into the kernel, so you will hear this suggestion as long as kernel names are used. :-) ... and I'll still argue that the kernel name code is bloat. Sure, some "canonical labels" are going to look very similar to kernel names (e.g. ttys), but many of the important ones aren't going to. The "default name" code should be in udev, not in the kernel. The kernel currently exports the kernel name and the major/minor - there's unnecessary duplication of information there. Kernel names are a bad user interface because they look like device names and they confuse people into believing they're looking at the same namespace. peace & happiness, martin -- Martin Schwenke IBM OzLabs - Linux Technology Centre http://ozlabs.au.ibm.com/~martins/ ------------------------------------------------------- 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