* [PATCH 1/4] Kconfig: make namespace a submenu
@ 2010-10-13 9:28 Daniel Lezcano
[not found] ` <1286962125-23871-1-git-send-email-daniel.lezcano-GANU6spQydw@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Daniel Lezcano @ 2010-10-13 9:28 UTC (permalink / raw)
To: akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b
Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
Make the namespaces config option a submenu.
Signed-off-by: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
---
init/Kconfig | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/init/Kconfig b/init/Kconfig
index a7fe61e..14c84e7 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -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
--
1.7.0.4
^ permalink raw reply related [flat|nested] 6+ messages in thread[parent not found: <1286962125-23871-1-git-send-email-daniel.lezcano-GANU6spQydw@public.gmane.org>]
* [PATCH 2/4] Kconfig: remove pointless cgroup dependency [not found] ` <1286962125-23871-1-git-send-email-daniel.lezcano-GANU6spQydw@public.gmane.org> @ 2010-10-13 9:28 ` Daniel Lezcano [not found] ` <1286962125-23871-2-git-send-email-daniel.lezcano-GANU6spQydw@public.gmane.org> 2010-10-13 9:28 ` [PATCH 3/4] Kconfig: remove the cgroup device whitelist experimental tag Daniel Lezcano ` (2 subsequent siblings) 3 siblings, 1 reply; 6+ messages in thread From: Daniel Lezcano @ 2010-10-13 9:28 UTC (permalink / raw) To: akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA The different cgroup subsystems are under the cgroup submenu. The dependency between the cgroups and the menu subsystems is pointless. Signed-off-by: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org> --- init/Kconfig | 14 ++++---------- 1 files changed, 4 insertions(+), 10 deletions(-) diff --git a/init/Kconfig b/init/Kconfig index 14c84e7..335ce89 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -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 -- 1.7.0.4 ^ permalink raw reply related [flat|nested] 6+ messages in thread
[parent not found: <1286962125-23871-2-git-send-email-daniel.lezcano-GANU6spQydw@public.gmane.org>]
* Re: [PATCH 2/4] Kconfig: remove pointless cgroup dependency [not found] ` <1286962125-23871-2-git-send-email-daniel.lezcano-GANU6spQydw@public.gmane.org> @ 2010-10-13 11:35 ` Li Zefan 0 siblings, 0 replies; 6+ messages in thread From: Li Zefan @ 2010-10-13 11:35 UTC (permalink / raw) To: Daniel Lezcano Cc: akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b, containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA Daniel Lezcano wrote: > The different cgroup subsystems are under the cgroup submenu. > The dependency between the cgroups and the menu subsystems is > pointless. Indead. > > Signed-off-by: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org> Acked-by: Li Zefan <lizf-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org> > --- > init/Kconfig | 14 ++++---------- > 1 files changed, 4 insertions(+), 10 deletions(-) ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 3/4] Kconfig: remove the cgroup device whitelist experimental tag [not found] ` <1286962125-23871-1-git-send-email-daniel.lezcano-GANU6spQydw@public.gmane.org> 2010-10-13 9:28 ` [PATCH 2/4] Kconfig: remove pointless cgroup dependency Daniel Lezcano @ 2010-10-13 9:28 ` Daniel Lezcano 2010-10-13 9:28 ` [PATCH 4/4] Kconfig: move namespace menu location after the cgroup Daniel Lezcano 2010-10-20 9:21 ` [PATCH 1/4] Kconfig: make namespace a submenu Daniel Lezcano 3 siblings, 0 replies; 6+ messages in thread From: Daniel Lezcano @ 2010-10-13 9:28 UTC (permalink / raw) To: akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA This subsystem is merged since a long time now, I think we can consider it mature enough. Signed-off-by: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org> --- init/Kconfig | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/init/Kconfig b/init/Kconfig index 335ce89..806f7d9 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -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. -- 1.7.0.4 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 4/4] Kconfig: move namespace menu location after the cgroup [not found] ` <1286962125-23871-1-git-send-email-daniel.lezcano-GANU6spQydw@public.gmane.org> 2010-10-13 9:28 ` [PATCH 2/4] Kconfig: remove pointless cgroup dependency Daniel Lezcano 2010-10-13 9:28 ` [PATCH 3/4] Kconfig: remove the cgroup device whitelist experimental tag Daniel Lezcano @ 2010-10-13 9:28 ` Daniel Lezcano 2010-10-20 9:21 ` [PATCH 1/4] Kconfig: make namespace a submenu Daniel Lezcano 3 siblings, 0 replies; 6+ messages in thread From: Daniel Lezcano @ 2010-10-13 9:28 UTC (permalink / raw) To: akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA We 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. Signed-off-by: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org> --- init/Kconfig | 104 +++++++++++++++++++++++++++++----------------------------- 1 files changed, 52 insertions(+), 52 deletions(-) diff --git a/init/Kconfig b/init/Kconfig index 806f7d9..3445d11 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -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 -- 1.7.0.4 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 1/4] Kconfig: make namespace a submenu [not found] ` <1286962125-23871-1-git-send-email-daniel.lezcano-GANU6spQydw@public.gmane.org> ` (2 preceding siblings ...) 2010-10-13 9:28 ` [PATCH 4/4] Kconfig: move namespace menu location after the cgroup Daniel Lezcano @ 2010-10-20 9:21 ` Daniel Lezcano 3 siblings, 0 replies; 6+ messages in thread From: Daniel Lezcano @ 2010-10-20 9:21 UTC (permalink / raw) To: akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA On 10/13/2010 11:28 AM, Daniel Lezcano wrote: > Make the namespaces config option a submenu. > > Signed-off-by: Daniel Lezcano<daniel.lezcano-GANU6spQydw@public.gmane.org> > --- > Hi Andrew, do you plan to take this patchset ? Thanks -- Daniel ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-10-20 9:21 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-13 9:28 [PATCH 1/4] Kconfig: make namespace a submenu Daniel Lezcano
[not found] ` <1286962125-23871-1-git-send-email-daniel.lezcano-GANU6spQydw@public.gmane.org>
2010-10-13 9:28 ` [PATCH 2/4] Kconfig: remove pointless cgroup dependency Daniel Lezcano
[not found] ` <1286962125-23871-2-git-send-email-daniel.lezcano-GANU6spQydw@public.gmane.org>
2010-10-13 11:35 ` Li Zefan
2010-10-13 9:28 ` [PATCH 3/4] Kconfig: remove the cgroup device whitelist experimental tag Daniel Lezcano
2010-10-13 9:28 ` [PATCH 4/4] Kconfig: move namespace menu location after the cgroup Daniel Lezcano
2010-10-20 9:21 ` [PATCH 1/4] Kconfig: make namespace a submenu Daniel Lezcano
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.