Re: Persistent device numbers

Alan Cox (alan@lxorguk.ukuu.org.uk)
Thu, 2 Aug 2001 15:37:49 +0100 (BST)


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

To an extent

> 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?

You are mostly talking about a user space problem in reality. Things like
scsiinfo for example build a directory of scsi path based names to the
disks, and the mount code supports mounting by volume label.

You might want to look at devfs too, its not my favourite solution but it
does offer most of what you are describing
-
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/