On Tuesday 13 September 2011 20:05:40 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"? :)
Why not? Anyway the root file system cannot be unmounted.
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"?
They are internal drives, even if hot-pluggable, I would not consider them 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.
The document says ub* is reserved for USB and sd* is for SCSI devices. Am I wrong?
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*.
Does it mean this should not be corrected ever?
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.
I am talking not about past but about future and correctness.
By the way, DVD and CD drives still called sr*.
Sorry, you are correct, but they are still using the scsi subsystem.
So using the SCSI subsystem does not necessary imply usage of sd* name.
And note, your USB dvd drive also uses sr*.
That's good. Why USB removable drive cannot use ub* then? -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org