Persistent device numbers

Borsenkow Andrej (Andrej.Borsenkow@mow.siemens.ru)
Thu, 2 Aug 2001 10:30:44 +0400


As far as I understand, currently kernel assigns device numbers dynamically.
It means, that actual, user visible, controller/drive name may change if

- hardware configuaration is changed (added ot removed controller, added or
removed drive)

- for some reasons order of initialisation in kernel changes (which may
result in nasty surprise after update)

Moreover, it near to impossible to know which name device gets in advance
(or why it gets this name).

Most commercial systems (O.K. those I looked into) have some sort of logical
device numbering that assigns fixed name based on some unique hardware
address (cf /etc/path_to_inst in Solaris). Hardware address usually is a
path needed to access device - i.e. Bus/Slot/Channel[/drive id], so that you
can set

PCI0/Slot3/Channel1 == eth3

and this never changes if you add or remove any card.

Do I miss something and Linux has such mechanism?

TIA

-andrej
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/