aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
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)"