On Tue, Sep 13, 2011 at 07:26:41PM +0400, Ilya Chernykh wrote:
On Tuesday 13 September 2011 18:51:47 you wrote:
On the libata list they occasionally fantasize about a day when libata will be a full fledged driver and not stuck underneath the scsi stack. It really doesn't belong there. sata does not truly follow the scsi standard, so its a force fit.
When they have their flights-of-fantasy discussions, they talk about /dev/hd being a new universal name to represent all hard disks.
That would be nice, but then again, is a sd card a "hard disk"?
What is really important is not what interface it uses, but whether it is removanle. All (or nearly all) USB drives are removable, that is they should not be shown as "hard drives" even if they are physically hard drives.
Why is that? What about people who boot from a USB disk, do you want to mark that as "removable"? :) I have ata disks attached to a PCI controller that I can hot-remove from the system at any time. Should those be marked "removable"?
Having all storage devices with the same namespace of "sd*" is the main thing that is important, and is what we finally accomplished.
Accomplished what? Cannong all devices by a name, reserved to SCSI devices by the specification? Is this brutal breaking with the specification an achievement?
We broke no "spec", sorry, please realize that USB disks showed up as "sd*" over 10 years ago, in the 2.2 kernel days. Then, in late 2.4 development, a totally new driver was written to resolve some issues. That was the ub driver, and at that time, the USB block major number was reserved that you see in the devices.txt document. At that time, most people still stuck with the usb-storage driver, and their disks showed up as sd*, and no distros enabled the ub driver. So at no point in time has any suse distro ever had a usb storage device show up as ub*. And neither has any other distro. So your code has _always_ been broken if it thought that ub* was the only way to detect a USB disk in the system.
By the way, DVD and CD drives still called sr*.
Sorry, you are correct, but they are still using the scsi subsystem. And note, your USB dvd drive also uses sr*. greg k-h -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org