mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Cornelia Huck <cornelia.huck@de.ibm.com>
To: Daniel Lezcano <dlezcano@fr.ibm.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [SYSFS - 2.6.23-rc5-git1 ] device_rename: sysfs_create_symlink failed (-17)
Date: Mon, 10 Sep 2007 13:30:06 +0200	[thread overview]
Message-ID: <20070910133006.26ddfdab@gondolin.boeblingen.de.ibm.com> (raw)
In-Reply-To: <46E15CB4.9040508@fr.ibm.com>

On Fri, 07 Sep 2007 16:14:12 +0200,
Daniel Lezcano <dlezcano@fr.ibm.com> wrote:

> Hi,
> 
> when using the 2.6.23-rc5-git1 kernel and trying to change a network 
> device name, I have the following error:
> 
> device_rename: sysfs_create_symlink failed (-17)

-EEXIST, maybe a double rename?

> 
> That comes from drivers/base/core.c : 1261

This is the link under the class directory to the renamed device.

> 
> I know anything about sysfs, so no much help to give... :(
> 
> I don't know if this is a bug, but my code use device_rename, check the 
> return value and fails. I will ignore it, but it seems not to be a 
> correct behavior to have such error.

Why does your code need to call device_rename() itself, I'd have
thought the networking code took care of it? (BTW: Which driver?)

> 
> Easy to reproduce:
> 	load a dummy network driver => dummy0
> 	change its name with : ip link set name foo0 dev dummy0

[Don't know if ip is sensitive to order, but shouldn't that be
ip link set dev dummy0 name foo0 ?]

You could try to switch on DEBUG_DRIVER and DEBUG_KOBJECT, this may
point to where the double name pops up. 

      reply	other threads:[~2007-09-10 11:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-07 14:14 Daniel Lezcano
2007-09-10 11:30 ` Cornelia Huck [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070910133006.26ddfdab@gondolin.boeblingen.de.ibm.com \
    --to=cornelia.huck@de.ibm.com \
    --cc=dlezcano@fr.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®