Re: Persistent device numbers
Greg KH (greg@kroah.com)
Thu, 2 Aug 2001 10:06:05 -0700
On Thu, Aug 02, 2001 at 12:20:35PM +0200, Christoph Hellwig wrote:
> > 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?
>
> For some device-types this is provided be userspace tools. E.g. LVM
> provides persistan names for it's deice by stroing name and UUID on disk,
> 'normal' filesystems can be mounted by UUID or label and Andi Kleen has
> a tool that allows naming network interfaces by MAC addresses.
Yes, and combine the 'nameif' program with the linux-hotplug scripts and
you can have your network devices always be named correctly
automatically when the interface starts up.
greg k-h
-
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/