aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2010-09-05 01:33:14 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-22 13:16:43 -0400
commit39aba963d937edb20db7d9d93e6dda5d2adfdcdd (patch)
tree7aa1898634ed6f6ece3e48f4b5464fcbcb4f49a5 /init
parent807508c8ff9af6ce8f25c5ca5f3eb06a8e7d3286 (diff)
driver core: remove CONFIG_SYSFS_DEPRECATED_V2 but keep it for block devices
This patch removes the old CONFIG_SYSFS_DEPRECATED_V2 config option, but it keeps the logic around to handle block devices in the old manner as some people like to run new kernel versions on old (pre 2007/2008) distros. Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Cc: Jens Axboe <axboe@kernel.dk> Cc: Stephen Hemminger <shemminger@vyatta.com> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: Alan Stern <stern@rowland.harvard.edu> Cc: "James E.J. Bottomley" <James.Bottomley@suse.de> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> Cc: Randy Dunlap <randy.dunlap@oracle.com> Cc: Tejun Heo <tj@kernel.org> Cc: "David S. Miller" <davem@davemloft.net> Cc: Jaroslav Kysela <perex@perex.cz> Cc: Takashi Iwai <tiwai@suse.de> Cc: Ingo Molnar <mingo@elte.hu> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: David Howells <dhowells@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'init')
-rw-r--r--init/Kconfig46
1 files changed, 15 insertions, 31 deletions
diff --git a/init/Kconfig b/init/Kconfig
index 2de5b1cbadd9..137609f33ebc 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -656,40 +656,24 @@ config MM_OWNER
656 bool 656 bool
657 657
658config SYSFS_DEPRECATED 658config SYSFS_DEPRECATED
659 bool
660
661config SYSFS_DEPRECATED_V2
662 bool "enable deprecated sysfs features to support old userspace tools" 659 bool "enable deprecated sysfs features to support old userspace tools"
663 depends on SYSFS 660 depends on SYSFS
664 default n 661 default n
665 select SYSFS_DEPRECATED 662 help
666 help 663 This option switches the layout of the "block" class devices, to not
667 This option switches the layout of sysfs to the deprecated 664 show up in /sys/class/block/, but only in /sys/block/.
668 version. Do not use it on recent distributions. 665
669 666 This option allows new kernels to run on old distributions and tools,
670 The current sysfs layout features a unified device tree at 667 which might get confused by /sys/class/block/. Since 2007/2008 all
671 /sys/devices/, which is able to express a hierarchy between 668 major distributions and tools handle this just fine.
672 class devices. If the deprecated option is set to Y, the 669
673 unified device tree is split into a bus device tree at 670 Recent distributions and userspace tools after 2009/2010 depend on
674 /sys/devices/ and several individual class device trees at 671 the existence of /sys/class/block/, and will not work with this
675 /sys/class/. The class and bus devices will be connected by 672 option enabled.
676 "<subsystem>:<name>" and the "device" links. The "block" 673
677 class devices, will not show up in /sys/class/block/. Some 674 Only if you are using a new kernel on an old distribution, you might
678 subsystems will suppress the creation of some devices which 675 need to say Y here. Never say Y, if the original kernel, that came
679 depend on the unified device tree. 676 with your distribution, has not set this option.
680
681 This option is not a pure compatibility option that can
682 be safely enabled on newer distributions. It will change the
683 layout of sysfs to the non-extensible deprecated version,
684 and disable some features, which can not be exported without
685 confusing older userspace tools. Since 2007/2008 all major
686 distributions do not enable this option, and ship no tools which
687 depend on the deprecated layout or this option.
688
689 If you are using a new kernel on an older distribution, or use
690 older userspace tools, you might need to say Y here. Do not say Y,
691 if the original kernel, that came with your distribution, has
692 this option set to N.
693 677
694config RELAY 678config RELAY
695 bool "Kernel->user space relay support (formerly relayfs)" 679 bool "Kernel->user space relay support (formerly relayfs)"