public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* new sysfs layout and ethernet device names
@ 2007-03-20 17:01 Bill Nottingham
  2007-03-22  8:47 ` Kay Sievers
  0 siblings, 1 reply; 8+ messages in thread
From: Bill Nottingham @ 2007-03-20 17:01 UTC (permalink / raw)
  To: linux-kernel

I was fiddling with the 'new' (no CONFIG_SYSFS_DEPRECATED) layout
and ethernet device names, and noticed that the new layout effectively
restricts the availability of certain device names.

By making a directory for the ethernet device name in the parent
device, you no longer can use any name that is used in sysfs for
the parent device type - for PCI devices this would be 'resource0',
'power', 'enable', etc. For USB, it would be a different set
of names that are no longer available.

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.

Bill



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-03-30  5:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox