diff options
Diffstat (limited to 'init/Kconfig')
-rw-r--r-- | init/Kconfig | 64 |
1 files changed, 33 insertions, 31 deletions
diff --git a/init/Kconfig b/init/Kconfig index bd125a795374..fdfd97efe0e0 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -686,40 +686,42 @@ config MM_OWNER | |||
686 | bool | 686 | bool |
687 | 687 | ||
688 | config SYSFS_DEPRECATED | 688 | config SYSFS_DEPRECATED |
689 | bool | ||
690 | |||
691 | config SYSFS_DEPRECATED_V2 | ||
692 | bool "enable deprecated sysfs features to support old userspace tools" | 689 | bool "enable deprecated sysfs features to support old userspace tools" |
693 | depends on SYSFS | 690 | depends on SYSFS |
694 | default n | 691 | default n |
695 | select SYSFS_DEPRECATED | 692 | help |
696 | help | 693 | This option adds code that switches the layout of the "block" class |
697 | This option switches the layout of sysfs to the deprecated | 694 | devices, to not show up in /sys/class/block/, but only in |
698 | version. Do not use it on recent distributions. | 695 | /sys/block/. |
699 | 696 | ||
700 | The current sysfs layout features a unified device tree at | 697 | This switch is only active when the sysfs.deprecated=1 boot option is |
701 | /sys/devices/, which is able to express a hierarchy between | 698 | passed or the SYSFS_DEPRECATED_V2 option is set. |
702 | class devices. If the deprecated option is set to Y, the | 699 | |
703 | unified device tree is split into a bus device tree at | 700 | This option allows new kernels to run on old distributions and tools, |
704 | /sys/devices/ and several individual class device trees at | 701 | which might get confused by /sys/class/block/. Since 2007/2008 all |
705 | /sys/class/. The class and bus devices will be connected by | 702 | major distributions and tools handle this just fine. |
706 | "<subsystem>:<name>" and the "device" links. The "block" | 703 | |
707 | class devices, will not show up in /sys/class/block/. Some | 704 | Recent distributions and userspace tools after 2009/2010 depend on |
708 | subsystems will suppress the creation of some devices which | 705 | the existence of /sys/class/block/, and will not work with this |
709 | depend on the unified device tree. | 706 | option enabled. |
710 | 707 | ||
711 | This option is not a pure compatibility option that can | 708 | Only if you are using a new kernel on an old distribution, you might |
712 | be safely enabled on newer distributions. It will change the | 709 | need to say Y here. |
713 | layout of sysfs to the non-extensible deprecated version, | 710 | |
714 | and disable some features, which can not be exported without | 711 | config SYSFS_DEPRECATED_V2 |
715 | confusing older userspace tools. Since 2007/2008 all major | 712 | bool "enabled deprecated sysfs features by default" |
716 | distributions do not enable this option, and ship no tools which | 713 | default n |
717 | depend on the deprecated layout or this option. | 714 | depends on SYSFS |
718 | 715 | depends on SYSFS_DEPRECATED | |
719 | If you are using a new kernel on an older distribution, or use | 716 | help |
720 | older userspace tools, you might need to say Y here. Do not say Y, | 717 | Enable deprecated sysfs by default. |
721 | if the original kernel, that came with your distribution, has | 718 | |
722 | this option set to N. | 719 | See the CONFIG_SYSFS_DEPRECATED option for more details about this |
720 | option. | ||
721 | |||
722 | Only if you are using a new kernel on an old distribution, you might | ||
723 | need to say Y here. Even then, odds are you would not need it | ||
724 | enabled, you can always pass the boot option if absolutely necessary. | ||
723 | 725 | ||
724 | config RELAY | 726 | config RELAY |
725 | bool "Kernel->user space relay support (formerly relayfs)" | 727 | bool "Kernel->user space relay support (formerly relayfs)" |