I don't remember the exact circumstances, but I've seen it quite a few
times. I'll gather some information next time.
Sure, you can't rename it when the name is taken. But what udev
apparently does when renaming a device is:
- rename eth0 to eth0_rename
- rename eth0_rename to eth2
- rename returns -EEXISTS: udev keeps eth0_rename
What it could do is:
- rename eth0 to eth2
- rename returns -EEXISTS: device at least still has a proper name
Alternatively it should unroll the rename and hope that the
old name is still free. But I don't see why the _rename step
would do any good, assuming only a single device is handled at
a time, it can't prevent clashes.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html