On Mon, Sep 12, 2011 at 11:11:52PM +0400, Ilya Chernykh wrote:
Hi!
I submitted the following bugreport (bnc#717326):
Thanks, but no need to report it here, I've marked it invalid :)
=== The current Lanana devices list http://www.kernel.org/pub/linux/docs/device-list/devices.txt reserves sd* name for SCSI block devices, while USB devices should have name of the type ub*:
USB block devices 0 = /dev/uba First USB block device 8 = /dev/ubb Second USB block device 16 = /dev/ubc Thrid USB block device
That is if you are using the ub.ko kernel driver, which no one does anymore, it is not needed. Normal usb devices use the usb-storage driver, which use the scsi device naming scheme, as you have noticed. That is the correct thing to do.
But in openSUSE USB devices are actually assigned names in sd* range making automatic device type detection impossible or difficult. I faced this issue when making a patch for KDE3 that should detect removable media without hal and which is based on analysis of /proc/self/mounts entries.
Why would you do that? Why not use the proper api to detect removable block devices and not rely on the device name?
Thus the mtab backend thinks about USB drives as of hard disks.
Lots of them are hard disks :)
It is actually interesting why USB devices are assigned SCSI-names, and should not they receive USB names.
No it isn't, it's been that way for over 10 years now, nothing new here at all
Another question is that it seems that even SATA and parallel IDE devices also receive the SCSI-name.
Again, on purpose, has been this way for over 5 years now. greg k-h -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org