Martin Pool's blog

devlabel

devlabel [manual] looks really elegantly simple: get hotplug events in userspace, find a unique identifier for the device and use it to make a symlink /dev/work -> /dev/hdb2. They can use various methods for finding the true name of the device including looking for filesystem UUIDs or labels. (I have only read about it, not used it, so I might be entirely wrong.)

If this works, it might solve the icky problem I had yesterday: adding a new SCSI array to a system made all the other device names changed, so they needed to be manually reassigned.

A related problem is that the order of probing for some SCSI drivers seems to have changed between 2.4 and 2.6. So on 2.4 the drives attached to say Symbios get detected as sda and sdb, but on 2.6 the QLogic gets detected first.

Let's hope devlabel gets into Debian soon.

Like everything else, Linux sucks but it can be fixed: truly a creature of growth and capable of sweetness, to ooze juicily at the last round the bearded lips of God [Anthony Burgess].

I suppose the one thing this doesn't fix is finding the right root partition. Maybe it might work with a cunningly crafted initrd.

Something similar has been done before in things like vold but maybe now it can be broadly adopted. Unlike vold, devlabel doesn't seem to use a polling setup.

Archives 2008: Apr Feb 2007: Jul May Feb Jan 2006: Dec Nov Oct Sep Aug Jul Jun Jan 2005: Sep Aug Jul Jun May Apr Mar Feb Jan 2004: Dec Nov Oct Sep Aug Jul Jun May Apr Mar Feb Jan 2003: Dec Nov Oct Sep Aug Jul Jun May