From: Michael Tokarev <mjt@tls.msk.ru>
To: Jan Engelhardt <jengelh@computergmbh.de>
Cc: Herbert Rosmanith <kernel@wildsau.enemy.org>,
linux-kernel@vger.kernel.org
Subject: Re: renaming kernel devices [was: VIA EPIA EK: strange eth dev numbering]
Date: Thu, 02 Aug 2007 17:36:45 +0400 [thread overview]
Message-ID: <46B1DDED.8010703@msgid.tls.msk.ru> (raw)
In-Reply-To: <Pine.LNX.4.64.0708021526310.24572@fbirervta.pbzchgretzou.qr>
Jan Engelhardt wrote:
> On Aug 2 2007 16:56, Michael Tokarev wrote:
>>>> I already can see comments from udev/sysfs maintainers here: "naming
>>>> is a policy which does not belong to kernel". It's a bullshit, because
>>>> kernel too has to use SOME way to name things,
>>> (1) The kernel starts with ethX
>>> (2) udev renames it to something else
>>> (3) kernel uses new name too ("ni0: link down")
>> And now tell me please how can I connect two messages from dmesg:
>>
>> eth0: Tigon3 [partno(BCM95721) rev 4201 PHY(5750)] (PCI Express) 10/100/1000Base-T Ethernet 00:14:5e:5d:18:26
>> nic10: Link is up at 100 Mbps, full duplex.
>
> Generally, the "link is xyz" message comes directly after loading the module,
> so it should be eth0 before udev gets a chance to rename it. Or maybe not -
> in which case, well, you're literally fubared, and your distro should put a
> "renamed A to B" into syslog.
Yes, first message is generated before udev has a chance to act.
And no, I just don't use udev, and I hope very much that it will
not become required (it is slowly becoming - for example, some
packages on Debian (like xen for example) now explicitly depends
on udev - but so far I managed to satisfy this dependency by
other means).
>> What I wanted to say (here with network devices, and with disk names
>> and everything else) is -- as long as the device is here (plugged in
>> but not yet unplugged), I want it to have the same "primary" name in
>> kernel and in userspace, so that everything
>
> Oh I think it already has a "primary name" today --
>
> $ readlink /sys/class/net/eth0/device
> ../../../../../devices/pci0000:00/0000:00:04.0
>
> there is your primary name, and your secondary name is ethZ. :)
This primary name isn't at all useful - I can't ifconfig or fdisk it,
and it's not shown in log/dmesg either.
/mjt
next prev parent reply other threads:[~2007-08-02 13:36 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-02 10:20 VIA EPIA EK: strange eth dev numbering Herbert Rosmanith
2007-08-02 10:26 ` Michael Tokarev
2007-08-02 10:42 ` Herbert Rosmanith
2007-08-02 10:49 ` Jan Engelhardt
2007-08-02 10:56 ` Herbert Rosmanith
2007-08-02 11:23 ` renaming kernel devices [was: VIA EPIA EK: strange eth dev numbering] Michael Tokarev
2007-08-02 11:47 ` Jan Engelhardt
2007-08-02 12:56 ` Michael Tokarev
2007-08-02 13:30 ` Jan Engelhardt
2007-08-02 13:36 ` Michael Tokarev [this message]
2007-08-02 14:37 ` Ondrej Zajicek
2007-08-02 13:43 ` Herbert Rosmanith
2007-08-02 14:51 ` Ondrej Zajicek
2007-08-03 4:45 ` david
2007-08-03 15:12 ` Stefan Richter
2007-08-04 4:33 ` david
2007-08-04 9:16 ` Stefan Richter
2007-08-04 17:06 ` david
2007-08-02 11:47 ` VIA EPIA EK: strange eth dev numbering Jan Engelhardt
2007-08-02 12:00 ` Herbert Rosmanith
2007-08-02 12:06 ` Jan Engelhardt
2007-08-02 13:07 ` Michael Tokarev
2007-08-02 13:38 ` Jan Engelhardt
2007-08-02 18:37 ` Jan Engelhardt
2007-08-02 22:00 ` Kay Sievers
2007-08-02 22:39 ` Jan Engelhardt
2007-08-02 22:49 ` Kay Sievers
2007-08-03 7:46 ` Jan Engelhardt
2007-08-02 11:12 ` Herbert Rosmanith
2007-08-02 10:44 ` Jan Engelhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46B1DDED.8010703@msgid.tls.msk.ru \
--to=mjt@tls.msk.ru \
--cc=jengelh@computergmbh.de \
--cc=kernel@wildsau.enemy.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox