/dev/disk/by-id symlinks should not include bus type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear udev developers,

Entries in /dev/disk/by-id are prefixed with e.g. ata-* or scsi-* or
usb-* depending on the bus to which a disk is connected. This makes
it impossible to switch disks between busses (e.g. hook an ATA disk
to usbserial and just make it work). I can use by-uuid for
partitions holding filesystems, but swap partitions are not exposed
by-uuid, so those cannot be used across different bus-systems.

IDs are either never guaranteed to be unique (meaning that there
could be two disks with the same ID), in which case having the bus
type there won't help.

Or IDs are unique, then it'll be impossible for the same disk ever
to appear on two busses at the same time.

Therefore, the bus type doesn't need to be kept with the ID in order
to guarantee uniqueness.

I can't imagine a situation in which you'd want to access a disk
only when it's connected to a certain bus. I *can* imagine a use
case where you want to refer to a disk consistently, independent of
the bus type.

Maybe the solution would be to move /dev/disk/by-id to
/dev/disk/by-bus+id and create /dev/disk/by-id to contain what it
promises (and compatibility links for a while).

Thoughts?

PS: please keep the Debian bug record on CC. More information
(though not a lot): http://bugs.debian.org/484512

-- 
 .''`.   martin f. krafft <madduck@xxxxxxxxxx>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems
 
wind catches lily,
scattering petals to the ground.
segmentation fault.

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux