From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Andrew Morton" Date: Tue, 06 Feb 2001 23:36:32 +0000 Subject: Re: Adding PCMCIA support to the kernel tree -- developers needed. Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org David Woodhouse wrote: > > On Tue, 6 Feb 2001, Andrew Morton wrote: > > > Well, I still want to provide a consistent and predictable > > ordering of this wrt the "hotplug" of my Acenic card. > > > > Why? Because I don't want them to be randomly assigned > > "eth0" or "eth1" depending on which way the wind is > > blowing. > > Stop. Step back and think. > > Why don't you want the name to change? > > Surely what you actually mean to say is that you don't want stuff to > break because the name has changed. Be that because the name didn't > actually change, or be that just because stuff didn't break - we just want > it not to break. > > Identifying devices by something more constant than the name which the > kernel happens to have assigned to them today is not difficult. Oh that's very true. The current scheme of assigning names by scan order sucks seriously - if you swap your NICs around, *everything* breaks. Andi has a little app which renames interfaces based on their MAC address, using SIOCSIFNAME, which is a perfectly sensible thing to do, IMO. But: - We don't want to have anything which is *worse* than what we currently have and - I'm only talking about netdevices. What happens with other types of device if the discovery order is randomised? I dunno. _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel