Error message from device_rename in drivers/base/core.c



I am getting the following error message from drivers/base/core.c:

net eth1: device_rename: sysfs_create_symlink failed (-17)

Upon investigation, the call generating the error is renaming 'eth1' to 'eth1'. The following patch suppresses the error.


Index: wireless-dev/drivers/base/core.c
===================================================================
--- wireless-dev.orig/drivers/base/core.c
+++ wireless-dev/drivers/base/core.c
@@ -1256,7 +1256,7 @@ int device_rename(struct device *dev, ch
sysfs_remove_link(&dev->class->subsys.kobj, old_device_name);
error = sysfs_create_link(&dev->class->subsys.kobj, &dev->kobj,
dev->bus_id);
- if (error) {
+ if (error && memcmp(dev->bus_id, new_name, sizeof(new_name))) {
/* Uh... how to unravel this if restoring can fail? */
dev_err(dev, "%s: sysfs_create_symlink failed (%d)\n",
__FUNCTION__, error);


Larry
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Error message from device_rename in drivers/base/core.c
    ... the call generating the error is renaming 'eth1' to 'eth1'. ... The following patch suppresses the error. ... it is most likely coming from udev. ...
    (Linux-Kernel)
  • Re: windows movie maker shuts down
    ... recommended renaming any files that end with .ax. ... "Graham Hughes" wrote: ... MVP Digital Media ... down repeatedly without showing the error message. ...
    (microsoft.public.windowsxp.moviemaker)
  • "device_rename: sysfs_create_symlink failed (-17)"
    ... I have set up two interfaces, eth1 and eth2, on my laptop, ... The theory is that if eth1 does not connect to AP1 ... with the result that if the first connection fails, ... the second always fails with the above error message ...
    (Fedora)
  • "device_rename: sysfs_create_symlink failed (-17)"
    ... I have set up two interfaces, eth1 and eth2, on my laptop, ... The theory is that if eth1 does not connect to AP1 ... with the result that if the first connection fails, ... the second always fails with the above error message ...
    (comp.os.linux.networking)
  • RE: cannot find dll
    ... What operating system are you using? ... to C:\Windows and either renaming or deleting "extend.bat" (renaming may be ... > A user of mine keeps getting an error message either upon opening Outlook ...
    (microsoft.public.outlook.general)