Re: [lxc-devel] RFC: Device Namespaces

2013-09-08 Thread Eric W. Biederman
Amir Goldstein writes: > On Fri, Sep 6, 2013 at 7:50 PM, Eric W. Biederman > wrote: > > Hi Eric, > > If we can get people to take a quick look at the code before LPC > that could make the LPC discussions more effective. > Even looking at one of the subsystem patches can give a basic > idea of th

Re: [lxc-devel] [Lxc-users] Working LXC templates?

2013-09-08 Thread Michael H. Warfield
With all due respect... On Sun, 2013-09-08 at 16:08 -0700, Tony Su wrote: > After putting some thought into this, > IMO LXC badly needs a universal tool with the following features > > - A single script should be used to run on HostOS, creating > supported Container OS. Although this would mak

Re: [lxc-devel] [Lxc-users] Working LXC templates?

2013-09-08 Thread Tony Su
After putting some thought into this, IMO LXC badly needs a universal tool with the following features - A single script should be used to run on HostOS, creating supported Container OS. Although this would make the script extremely large, IMO it would actually be easier to maintain in the long

[lxc-devel] [PATCH 5/6] utils: Add utility functions that write/read to entire files

2013-09-08 Thread Christian Seiler
Signed-off-by: Christian Seiler --- src/lxc/utils.c | 91 +++ src/lxc/utils.h |5 +++ 2 files changed, 96 insertions(+) diff --git a/src/lxc/utils.c b/src/lxc/utils.c index dc98443..02336d7 100644 --- a/src/lxc/utils.c +++ b/src/lxc/utils

[lxc-devel] [PATCH 4/6] utils: Add string and array utility functions

2013-09-08 Thread Christian Seiler
Adds a few useful string and array manipulation functions to utils.[ch] Signed-off-by: Christian Seiler --- src/lxc/utils.c | 284 +++ src/lxc/utils.h | 32 +++ 2 files changed, 316 insertions(+) diff --git a/src/lxc/utils.c b/src/lxc/u

[lxc-devel] [PATCH 3/6] Add fopen_cloexec function to emulate 'e' mode

2013-09-08 Thread Christian Seiler
Newer glibc versions (that we can't require) allow for an additional letter 'e' in the fopen mode that will cause the file to be opened with the O_CLOEXEC flag, so that it will be closed if the program exec()s away. This is important because if liblxc is used in a multithreaded program, another thr

[lxc-devel] [PATCH 2/6] Add cgroup.pattern global configuration option

2013-09-08 Thread Christian Seiler
Signed-off-by: Christian Seiler --- configure.ac|7 +++ src/lxc/Makefile.am |3 ++- src/lxc/utils.c |1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 4eaf329..f0f417c 100644 --- a/configure.ac +++ b/configure.ac @@ -

[lxc-devel] [PATCH 1/6] global config: Unify parsing, add additional checks

2013-09-08 Thread Christian Seiler
Instead of duplicating the code for parsing the global config file for each option, write one main function, lxc_global_config_value, that does the parsing for an arbitrary option name and just call that function from the existing ones. Signed-off-by: Christian Seiler --- src/lxc/utils.c | 137

[lxc-devel] [RFC] [PATCH 0/6] Major cgroup logic rewrite

2013-09-08 Thread Christian Seiler
Hi all, As discussed previously, I've now done a major rewrite of the entire cgroup logic. There are now no assumptions made whatsoever when it comes to the cgroup mount points, the kernel information will be used to determine the proper locations for everything. (Only /proc is assumed to be worki

Re: [lxc-devel] RFC: Device Namespaces

2013-09-08 Thread Amir Goldstein
On Fri, Sep 6, 2013 at 7:50 PM, Eric W. Biederman wrote: > Oren Laadan writes: > > > Hi Serge, > > > > > > On Thu, Aug 22, 2013 at 2:21 PM, Serge Hallyn >wrote: > > > >> Quoting Oren Laadan (or...@cellrox.com): > >> > Hi everyone! > >> > > >> > We [1] have been working on bringing lightweight vi