public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Kay Sievers <kay.sievers@vrfy.org>, linux-kernel@vger.kernel.org
Subject: Re: new sysfs layout and ethernet device names
Date: Tue, 27 Mar 2007 21:10:05 -0700	[thread overview]
Message-ID: <20070328041005.GA7550@kroah.com> (raw)
In-Reply-To: <20070328031743.GA11819@nostromo.devel.redhat.com>

On Tue, Mar 27, 2007 at 11:17:43PM -0400, Bill Nottingham wrote:
> Kay Sievers (kay.sievers@vrfy.org) said: 
> > >If you *do* try to use one of these names, the rename will succeed...
> > >partway. The link in /sys/class/net is renamed, the directory is
> > >not (as it obviously can't rename on top of whatever is already there.)
> > >Various networking tools then break in assorted ways due to the
> > >naming disconnect.
> > >
> > >Going back to the deprecated layout makes these names available again -
> > >it's possible (although not necessarily likely) that the new layout
> > >will break someone's device configuration if they upgrade kernels,
> > >even if the rest of their tools are updated for the new layout.
> > 
> > There will be a directory at the bus-device with the name of the
> > class, that glues together the bus-devices and the class-devices in
> > the unified tree:
> >  http://git.kernel.org/?p=linux/kernel/git/gregkh/patches.git;a=blob;f=driver/driver-core-fix-namespace-issue-with-devices-assigned-to-classes.patch;hb=HEAD
> > 
> > So the network-interface(s) will be in their own directory "net",
> > below the bus-device, and don't conflict with the existing attributes.
> 
> So, the layout will change again?

If you follow the rules in Documentation/ABI/testing/sysfs-class your
program will not have any problems.

And yes, it will change by adding another subdirectory in the device
tree, but just follow the link from the /sys/class/ directorys and you
will be fine.

thanks,

greg k-h

  reply	other threads:[~2007-03-28  4:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-20 17:01 new sysfs layout and ethernet device names Bill Nottingham
2007-03-22  8:47 ` Kay Sievers
2007-03-28  3:17   ` Bill Nottingham
2007-03-28  4:10     ` Greg KH [this message]
2007-03-29  0:41       ` Bill Nottingham
2007-03-30  2:31         ` Greg KH
2007-03-30  3:29           ` Bill Nottingham
2007-03-30  5:26             ` Greg KH

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=20070328041005.GA7550@kroah.com \
    --to=greg@kroah.com \
    --cc=kay.sievers@vrfy.org \
    --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