Thread (1 message) 1 message, 1 author, 2012-01-31

Re: network regression: cannot rename netdev twice

From: Eric W. Biederman <hidden>
Date: 2012-01-31 14:15:21
Also in: lkml

Kay Sievers [off-list ref] writes:
On Tue, Jan 31, 2012 at 12:17, Jiri Slaby [off-list ref] wrote:
quoted
On 01/31/2012 12:13 PM, Kay Sievers wrote:
quoted
quoted
This is a command sequence you type manually?
Yea, and it is working with 3.3.0-rc1-next-20120124_64+. Not with
3.3.0-rc1-next-20120131_64+.
quoted
You are sure that userspace is not working in the background,
triggered by uevents, and comes into your way here?
Note that krtek exists after the first command. But cannot be renamed
further.
Yeah, I can confirm the problem here. I works fine with earlier
kernels and fails with the latest -next:

# uname -r
3.3.0-rc1-next-20120131+
# modprobe dummy
# ip link set dummy0 name foo0
# ip link set foo0 name bar0
RTNETLINK answers: No such file or directory
There is something weird going on when sysfs directories and symlinks
are renamed.  My guess is that I fat fingered something with one of my
last sysfs patches.  I will look more deeply once I have slept some
more.

The second network device renames fails because the first rename did not
work properly.  ls -l /sys/class/net/ /sys/virtual/net/ will let you see
what I mean.

Eric
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help