chiark / gitweb /
udev-event.c: rename interface to <src>-<dest>, if <dest> taken
authorHarald Hoyer <harald@redhat.com>
Tue, 10 Aug 2010 14:41:24 +0000 (16:41 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 10 Aug 2010 14:46:48 +0000 (16:46 +0200)
commit09c03103028011935044bbade29a602925898f27
tree0ca6abfe731ab2389fb6a5446aaf24342c09a976
parentc11f89b61a7872f640a15292a21c43504ce664da
udev-event.c: rename interface to <src>-<dest>, if <dest> taken

e.g. if eth0 should be eth3 and eth3 is waiting to be renamed,
eth0 was renamed to eth0_rename. The kernel would take eth0 as the name
for a new interface and this new eth0 could also become eth0_rename, if
the target name is also taken. To prevent this name clash, the
interfaces are now renamed to <src>-<dest> and the rename is logged.
udev/udev-event.c