[lxc-devel] [PATCH] lxc_cgroup_path_get cache the wrong data

2011-03-19 Thread Francois-Xavier Bourlet
Hi, lxc_cgroup_path_get currently cache the cgroup mount point plus the container name at the same time, making every call of the function returning the same value. It mean that actually every call to lxc_cgroup_get with a different container name will in fact use the same container name as used f

Re: [lxc-devel] lxc final thesis

2011-03-19 Thread Daniel Lezcano
On 03/18/2011 06:40 PM, Farcasi Ana-Maria wrote: > Hello, > > As mentioned in our previous email, we were having issues getting bandwidth > limitation working on cgroup ( with net_cls ) and tc. We've been running > various tests and scenarios but found no way to enable proper limitation. > Througho

[lxc-devel] [PATCH 5/5] confile: check allocation succeeds

2011-03-19 Thread Michael Santos
Signed-off-by: Michael Santos --- src/lxc/confile.c | 37 + 1 files changed, 29 insertions(+), 8 deletions(-) diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 1d30cba..791f04f 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -195,7 +195,7 @@

[lxc-devel] [PATCH 4/5] conf: increase buffer size to include spaces

2011-03-19 Thread Michael Santos
Signed-off-by: Michael Santos --- src/lxc/conf.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lxc/conf.c b/src/lxc/conf.c index f73eaac..ae5b259 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -205,14 +205,18 @@ static int run_script(const char *name, co

[lxc-devel] [PATCH 3/5] arguments: check allocation succeeds

2011-03-19 Thread Michael Santos
Signed-off-by: Michael Santos --- src/lxc/arguments.c | 16 +--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/lxc/arguments.c b/src/lxc/arguments.c index 3c11661..51ebadb 100644 --- a/src/lxc/arguments.c +++ b/src/lxc/arguments.c @@ -96,6 +96,9 @@ static void

[lxc-devel] [PATCH 2/5] network: ensure interface name is NULL terminated

2011-03-19 Thread Michael Santos
IFNAMSIZ includes the trailing NULL. Signed-off-by: Michael Santos --- src/lxc/network.c | 22 +++--- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/lxc/network.c b/src/lxc/network.c index 2ec8b71..420117a 100644 --- a/src/lxc/network.c +++ b/src/lxc/netwo

[lxc-devel] [PATCH 1/5] lxc_unshare: edit help output

2011-03-19 Thread Michael Santos
Signed-off-by: Michael Santos --- src/lxc/lxc_unshare.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lxc/lxc_unshare.c b/src/lxc/lxc_unshare.c index a82490e..eb93c89 100644 --- a/src/lxc/lxc_unshare.c +++ b/src/lxc/lxc_unshare.c @@ -46,10 +46,10 @@ void usage(ch