Messages in this thread | | | Date | Mon, 29 Oct 2007 14:40:16 -0700 | From | Stephen Hemminger <> | Subject | Re: [bug, 2.6.24-rc1] sysfs: duplicate filename 'eth0' can not be created |
| |
On Mon, 29 Oct 2007 22:17:46 +0100 Ingo Molnar <mingo@elte.hu> wrote:
> > hm, this seems to have popped up in the last few days, never had it > before: > > sysfs: duplicate filename 'eth0' can not be created > WARNING: at fs/sysfs/dir.c:424 sysfs_add_one() > > Call Trace: > [<ffffffff802de00a>] sysfs_add_one+0x54/0xbd > [<ffffffff802dee61>] sysfs_create_link+0xc6/0x11d > [<ffffffff8047c491>] device_rename+0x175/0x1d6 > [<ffffffff806180a6>] dev_change_name+0x118/0x211 > [<ffffffff8061893c>] dev_ioctl+0x4fa/0x5f8 > [<ffffffff8062eb11>] netlink_insert+0x13c/0x14b > [<ffffffff806a877f>] do_page_fault+0x3eb/0x73f > [<ffffffff8060b909>] sock_ioctl+0x1f2/0x200 > [<ffffffff802a5a5d>] do_ioctl+0x21/0x6b > [<ffffffff802a5cea>] vfs_ioctl+0x243/0x25c > [<ffffffff802a5d54>] sys_ioctl+0x51/0x71 > [<ffffffff8020c02e>] system_call+0x7e/0x83 > > net eth0: device_rename: sysfs_create_symlink failed (-17) > > 32-bit bzImage kernel - config attached. (The 64-bit kernel even lost > connectivity due to this and ifcfg-eth0 got renamed to ifcfg-eth0.bak by > kudzu.) > > detected order of the interfaces is: > > forcedeth 0000:00:0a.0: ifname eth0, PHY OUI 0x5043 @1 > eth1: RealTek RTL8139 at 0xffffc200001f2000 > > and that's the ordering in /etc/sysconfig/network-scripts as well. > > Ingo
Already fixed post 2.6.24-rc1
commit c8d90dca3211966ba5189e0f3d4bccd558d9ae08 Author: Stephen Hemminger <shemminger@linux-foundation.org> Date: Fri Oct 26 03:53:42 2007 -0700
[NET] dev_change_name: ignore changes to same name
Prevent error/backtrace from dev_rename() when changing name of network device to the same name. This is a common situation with udev and other scripts that bind addr to device.
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
-- Stephen Hemminger <shemminger@linux-foundation.org> - 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/
| |