Kconfig: make namespace a submenu
PATCH 1/4 Kconfig: make namespace a submenu
Make the namespaces config option a submenu.
--- init/Kconfig | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-)
init/Kconfig +8 -6
@@ -727,7 +727,7 @@ config RELAY If unsure, say N. -config NAMESPACES +menuconfig NAMESPACES bool "Namespaces support" if EMBEDDED default !EMBEDDED help
@@ -736,9 +736,10 @@ config NAMESPACES or same user id or pid may refer to different tasks when used in different namespaces. +if NAMESPACES + config UTS_NS bool "UTS namespace" - depends on NAMESPACES default y help In this namespace tasks see different info provided with the
@@ -746,7 +747,7 @@ config UTS_NS config IPC_NS bool "IPC namespace" - depends on NAMESPACES && (SYSVIPC || POSIX_MQUEUE) + depends on (SYSVIPC || POSIX_MQUEUE) default y help In this namespace tasks work with IPC ids which correspond to
@@ -754,7 +755,7 @@ config IPC_NS config USER_NS bool "User namespace (EXPERIMENTAL)" - depends on NAMESPACES && EXPERIMENTAL + depends on EXPERIMENTAL default y help This allows containers, i.e. vservers, to use user namespaces
@@ -763,7 +764,6 @@ config USER_NS config PID_NS bool "PID Namespaces" - depends on NAMESPACES default y help Support process id namespaces. This allows having multiple
@@ -772,12 +772,14 @@ config PID_NS config NET_NS bool "Network namespace" - depends on NAMESPACES && NET + depends on NET default y help Allow user space to create what appear to be multiple instances of the network stack. +endif # NAMESPACES + config BLK_DEV_INITRD bool "Initial RAM filesystem and RAM disk (initramfs/initrd) support" depends on BROKEN || !FRV
Signature · 1 line
1.7.0.4
A message that is not in the archive (sent off-list or not yet received): 1286962125-23871-1-git-send-email-daniel.lezcano-GANU6spQydw@public.gmane.org
PATCH 2/4 Kconfig: remove pointless cgroup dependency
The different cgroup subsystems are under the cgroup submenu. The dependency between the cgroups and the menu subsystems is pointless.
--- init/Kconfig | 14 ++++---------- 1 files changed, 4 insertions(+), 10 deletions(-)
init/Kconfig +4 -10
@@ -511,7 +511,6 @@ if CGROUPS config CGROUP_DEBUG bool "Example debug cgroup subsystem" - depends on CGROUPS default n help This option enables a simple cgroup subsystem that
@@ -522,7 +521,6 @@ config CGROUP_DEBUG config CGROUP_NS bool "Namespace cgroup subsystem" - depends on CGROUPS help Provides a simple namespace cgroup subsystem to provide hierarchical naming of sets of namespaces,
@@ -531,21 +529,19 @@ config CGROUP_NS config CGROUP_FREEZER bool "Freezer cgroup subsystem" - depends on CGROUPS help Provides a way to freeze and unfreeze all tasks in a cgroup. config CGROUP_DEVICE bool "Device controller for cgroups" - depends on CGROUPS && EXPERIMENTAL + depends on EXPERIMENTAL help Provides a cgroup implementing whitelists for devices which a process in the cgroup can mknod or open. config CPUSETS bool "Cpuset support" - depends on CGROUPS help This option will let you create and manage CPUSETs which allow dynamically partitioning a system into sets of CPUs and
@@ -561,7 +557,6 @@ config PROC_PID_CPUSET config CGROUP_CPUACCT bool "Simple CPU accounting cgroup subsystem" - depends on CGROUPS help Provides a simple Resource Controller for monitoring the total CPU consumed by the tasks in a cgroup.
@@ -571,11 +566,10 @@ config RESOURCE_COUNTERS help This option enables controller independent resource accounting infrastructure that works with cgroups. - depends on CGROUPS config CGROUP_MEM_RES_CTLR bool "Memory Resource Controller for Control Groups" - depends on CGROUPS && RESOURCE_COUNTERS + depends on RESOURCE_COUNTERS select MM_OWNER help Provides a memory resource controller that manages both anonymous
@@ -616,7 +610,7 @@ config CGROUP_MEM_RES_CTLR_SWAP menuconfig CGROUP_SCHED bool "Group CPU scheduler" - depends on EXPERIMENTAL && CGROUPS + depends on EXPERIMENTAL default n help This feature lets CPU scheduler recognize task groups and control CPU
@@ -645,7 +639,7 @@ endif #CGROUP_SCHED config BLK_CGROUP tristate "Block IO controller" - depends on CGROUPS && BLOCK + depends on BLOCK default n ---help--- Generic block IO controller cgroup interface. This is the common
Signature · 1 line
1.7.0.4
A message that is not in the archive (sent off-list or not yet received): 1286962125-23871-2-git-send-email-daniel.lezcano-GANU6spQydw@public.gmane.org
Li Zefan
Acked-byRe: [PATCH 2/4] Kconfig: remove pointless cgroup dependency
Quoted 3 lines · Daniel Lezcano
The different cgroup subsystems are under the cgroup submenu. The dependency between the cgroups and the menu subsystems is pointless.
Indead.
Quoted 2 lines
Signed-off-by Daniel Lezcano <[email protected]>
Quoted 3 lines
--- init/Kconfig | 14 ++++---------- 1 files changed, 4 insertions(+), 10 deletions(-)
PATCH 3/4 Kconfig: remove the cgroup device whitelist experimental tag
In reply to a message not in the archiveThis subsystem is merged since a long time now, I think we can consider it mature enough.
--- init/Kconfig | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
init/Kconfig +0 -1
@@ -535,7 +535,6 @@ config CGROUP_FREEZER config CGROUP_DEVICE bool "Device controller for cgroups" - depends on EXPERIMENTAL help Provides a cgroup implementing whitelists for devices which a process in the cgroup can mknod or open.
Signature · 1 line
1.7.0.4
PATCH 4/4 Kconfig: move namespace menu location after the cgroup
In reply to a message not in the archiveWe have the namespaces as a menuconfig like the cgroup. The cgroup and the namespace are two base bricks for the containers.
It is more logical to put the namespace menu right after the cgroup menu.
--- init/Kconfig | 104 +++++++++++++++++++++++++++++----------------------------- 1 files changed, 52 insertions(+), 52 deletions(-)
init/Kconfig +52 -52
@@ -668,58 +668,6 @@ config DEBUG_BLK_CGROUP endif # CGROUPS -config MM_OWNER - bool - -config SYSFS_DEPRECATED - bool "enable deprecated sysfs features to support old userspace tools" - depends on SYSFS - default n - help - This option adds code that switches the layout of the "block" class - devices, to not show up in /sys/class/block/, but only in - /sys/block/. - - This switch is only active when the sysfs.deprecated=1 boot option is - passed or the SYSFS_DEPRECATED_V2 option is set. - - This option allows new kernels to run on old distributions and tools, - which might get confused by /sys/class/block/. Since 2007/2008 all - major distributions and tools handle this just fine. - - Recent distributions and userspace tools after 2009/2010 depend on - the existence of /sys/class/block/, and will not work with this - option enabled. - - Only if you are using a new kernel on an old distribution, you might - need to say Y here. - -config SYSFS_DEPRECATED_V2 - bool "enabled deprecated sysfs features by default" - default n - depends on SYSFS - depends on SYSFS_DEPRECATED - help - Enable deprecated sysfs by default. - - See the CONFIG_SYSFS_DEPRECATED option for more details about this - option. - - Only if you are using a new kernel on an old distribution, you might - need to say Y here. Even then, odds are you would not need it - enabled, you can always pass the boot option if absolutely necessary. - -config RELAY - bool "Kernel->user space relay support (formerly relayfs)" - help - This option enables support for relay interface support in - certain file systems (such as debugfs). - It is designed to provide an efficient mechanism for tools and - facilities to relay large amounts of data from kernel space to - user space. - - If unsure, say N. - menuconfig NAMESPACES bool "Namespaces support" if EMBEDDED default !EMBEDDED
@@ -773,6 +721,58 @@ config NET_NS endif # NAMESPACES +config MM_OWNER + bool + +config SYSFS_DEPRECATED + bool "enable deprecated sysfs features to support old userspace tools" + depends on SYSFS + default n + help + This option adds code that switches the layout of the "block" class + devices, to not show up in /sys/class/block/, but only in + /sys/block/. + + This switch is only active when the sysfs.deprecated=1 boot option is + passed or the SYSFS_DEPRECATED_V2 option is set. + + This option allows new kernels to run on old distributions and tools, + which might get confused by /sys/class/block/. Since 2007/2008 all + major distributions and tools handle this just fine. + + Recent distributions and userspace tools after 2009/2010 depend on + the existence of /sys/class/block/, and will not work with this + option enabled. + + Only if you are using a new kernel on an old distribution, you might + need to say Y here. + +config SYSFS_DEPRECATED_V2 + bool "enabled deprecated sysfs features by default" + default n + depends on SYSFS + depends on SYSFS_DEPRECATED + help + Enable deprecated sysfs by default. + + See the CONFIG_SYSFS_DEPRECATED option for more details about this + option. + + Only if you are using a new kernel on an old distribution, you might + need to say Y here. Even then, odds are you would not need it + enabled, you can always pass the boot option if absolutely necessary. + +config RELAY + bool "Kernel->user space relay support (formerly relayfs)" + help + This option enables support for relay interface support in + certain file systems (such as debugfs). + It is designed to provide an efficient mechanism for tools and + facilities to relay large amounts of data from kernel space to + user space. + + If unsure, say N. + config BLK_DEV_INITRD bool "Initial RAM filesystem and RAM disk (initramfs/initrd) support" depends on BROKEN || !FRV
Signature · 1 line
1.7.0.4
Quoted 5 lines · Daniel Lezcano
Make the namespaces config option a submenu.
Signed-off-by Daniel Lezcano<[email protected]>---
Hi Andrew,
do you plan to take this patchset ?
Thanks
-- Daniel