Re: [lxc-devel] [PATCH RESENT] - Minor resource name array fix in src/lxc/namespace.c

2010-07-06 Thread Daniel Lezcano
On 07/06/2010 12:03 AM, Tushar Gohad wrote: Google's mailer sent out the last email with wrong MIME type for the patch attachment. This message should have the patch in correct format. Thanks. Applied, thanks Tushar !

[lxc-devel] [GIT] lxc branch, master, updated. 78bdcd081edd6cc20587fb5c531445a2fb20f6d8

2010-06-24 Thread Daniel Lezcano
- commit 78bdcd081edd6cc20587fb5c531445a2fb20f6d8 Author: Daniel Lezcano daniel.lezc...@free.fr Date: Thu Jun 24 09:47:14 2010 +0200 remove bad default console option in ubuntu template Remove this options as by default container console goes to the tty or /dev/null

[lxc-devel] [GIT] lxc tag, lxc-0.7.1, created. 78bdcd081edd6cc20587fb5c531445a2fb20f6d8

2010-06-24 Thread Daniel Lezcano
- commit 78bdcd081edd6cc20587fb5c531445a2fb20f6d8 Author: Daniel Lezcano daniel.lezc...@free.fr Date: Thu Jun 24 09:47:14 2010 +0200 remove bad default console option in ubuntu template Remove this options as by default container console goes

Re: [lxc-devel] Fixed (hacked) LXC to apply mount options for bind mounts

2010-06-23 Thread Daniel Lezcano
On 03/08/2010 10:35 PM, Ciprian Dorin, Craciun wrote: Hello all! This bug stalked me for a while, but only now it bit me quite badly... (Lost about an hour of work...) So the culprit: inside the fstab file for the `lxc.mount` option I can use options like `ro` together with

[lxc-devel] [GIT] lxc branch, master, updated. a7dff83460f259c934da8eb2aef0eac5b437b808

2010-06-22 Thread Daniel Lezcano
- commit a7dff83460f259c934da8eb2aef0eac5b437b808 Author: Daniel Lezcano daniel.lezc...@free.fr Date: Wed Jun 23 00:44:13 2010 +0200 fix /proc not mounted in debian container Mount some systemm fs for the container. By default, /proc is no longer mounted in debian

[lxc-devel] [GIT] lxc tag, lxc-0.7.0, created. f7a5fb7cf5677ea7b8e8ffc4603cff5089771b10

2010-06-17 Thread Daniel Lezcano
- commit f7a5fb7cf5677ea7b8e8ffc4603cff5089771b10 Author: Daniel Lezcano dlezc...@fr.ibm.com Date: Thu Jun 17 14:04:15 2010 +0200 change version number to 0.7.0 Finally, I did it :) Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com

[lxc-devel] [GIT] lxc branch, master, updated. 8119235833dc0861c34086f639a60546cda2739c

2010-06-17 Thread Daniel Lezcano
- commit 8119235833dc0861c34086f639a60546cda2739c Author: Daniel Lezcano daniel.lezc...@free.fr Date: Thu Jun 17 22:44:23 2010 +0200 fix bad free when reading the configuration file We change the initial pointer when parsing the line, the address we are trying

[lxc-devel] [GIT] lxc branch, master, updated. 0830689d862752819db9552b2ba8ef58fe7cafaa

2010-06-16 Thread Daniel Lezcano
@LIBEXECDIR@ replacement Forgotten part of commit d674be08d4b282bb4717c51440811e39d3c2431e Signed-off-by: Panagiotis H.M. Issaris ta...@issaris.org Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com commit 4d67c1301b9cf6587b0cc2e42f4e61ed6c29097c Author: Ferenc Wagner wf...@niif.hu

Re: [lxc-devel] [RFC][PATCH][lxc]: unfreeze while stopping

2010-06-15 Thread Daniel Lezcano
On 06/09/2010 07:29 PM, Sukadev Bhattiprolu wrote: Michel Normand [norm...@fr.ibm.com] wrote: | Le mardi 08 juin 2010 à 19:07 -0700, Sukadev Bhattiprolu a écrit : | I am not too sure, but if user wants to stop a container is there a | reason not to implicitly unfreeze the container and stop

Re: [lxc-devel] [PATCH 0/2] some cleanup around lxc-create

2010-06-15 Thread Daniel Lezcano
On 06/15/2010 01:59 PM, Ferenc Wagner wrote: Hi, I had a go against lxc-create trying to debug the console issue. There is still a serious issue: the template scripts use some 'arch' binary, which isn't present on my system. What is that? Why not use 'uname -m' instead? There is no

Re: [lxc-devel] [PATCH 0/5] Signal stuff v2 and some documentation

2010-06-15 Thread Daniel Lezcano
On 06/15/2010 04:47 PM, Ferenc Wagner wrote: Daniel Lezcanodaniel.lezc...@free.fr writes: On 06/15/2010 02:13 PM, Ferenc Wagner wrote: Daniel Lezcanodaniel.lezc...@free.fr writes: On 06/10/2010 11:47 PM, Ferenc Wagner wrote: If you provide me with an example (and some description of

Re: [lxc-devel] [PATCH 0/5] Signal stuff v2 and some documentation

2010-06-15 Thread Daniel Lezcano
On 06/15/2010 02:13 PM, Ferenc Wagner wrote: Daniel Lezcanodaniel.lezc...@free.fr writes: On 06/10/2010 11:47 PM, Ferenc Wagner wrote: If you provide me with an example (and some description of lxc.console), I can give it some testing and concretize this pure guesswork.

[lxc-devel] [GIT] lxc branch, master, updated. b0badabd2d3ec9c8506651bbb4900cc0ec3f8a16

2010-06-14 Thread Daniel Lezcano
for the number of tasks remaining. Improve container state handling. We can't rely on the previous runlevel being maintained properly. Signed-off-by: Andrew Phillips andrew.phill...@lmax.com Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com

Re: [lxc-devel] [PATCH 4/5] generalize the name of the signal handler

2010-06-10 Thread Daniel Lezcano
On 06/09/2010 07:56 PM, Ferenc Wagner wrote: Signed-off-by: Ferenc Wagnerwf...@niif.hu +1 -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky

Re: [lxc-devel] [PATCH 1/5] start child in its own process group, and put it into the foreground

2010-06-10 Thread Daniel Lezcano
On 06/09/2010 07:56 PM, Ferenc Wagner wrote: Signed-off-by: Ferenc Wagnerwf...@niif.hu --- src/lxc/start.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/src/lxc/start.c b/src/lxc/start.c index b69ac88..7bbcf5a 100644 --- a/src/lxc/start.c +++

Re: [lxc-devel] [PATCH 2/5] lxc-start isn't in the foreground anymore, so TTY signals don't reach it

2010-06-10 Thread Daniel Lezcano
On 06/09/2010 07:56 PM, Ferenc Wagner wrote: Signed-off-by: Ferenc Wagnerwf...@niif.hu --- src/lxc/start.c |9 - src/lxc/utils.h | 29 ++--- 2 files changed, 2 insertions(+), 36 deletions(-) Yeah, cleanup ! +1 diff --git a/src/lxc/start.c

Re: [lxc-devel] [PATCH 3/5] forward signals to the container init

2010-06-10 Thread Daniel Lezcano
On 06/09/2010 07:56 PM, Ferenc Wagner wrote: Signed-off-by: Ferenc Wagnerwf...@niif.hu +1 -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky

Re: [lxc-devel] [PATCH 5/5] document rootfs options

2010-06-10 Thread Daniel Lezcano
On 06/09/2010 07:56 PM, Ferenc Wagner wrote: Signed-off-by: Ferenc Wagnerwf...@niif.hu Great, Thanks ! +1 -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE

Re: [lxc-devel] [PATCH 0/7] Last minute signal stuff (now in separate mails)

2010-06-07 Thread Daniel Lezcano
On 06/06/2010 11:07 PM, Ferenc Wagner wrote: Hi, The first part is some tinkering to make lxc compile under Debian Lenny. The dangerous part is the signal forwarding and the process group business I was playing with recently. It contains Greg's idea about setting the foreground process

[lxc-devel] [GIT] lxc branch, master, updated. dd04402dd9c26127973dc5836d2befa28496f125

2010-06-07 Thread Daniel Lezcano
dd04402dd9c26127973dc5836d2befa28496f125 Author: Daniel Lezcano dlezc...@fr.ibm.com Date: Mon Jun 7 11:33:56 2010 +0200 update .gitignore with new location Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com commit 09d1bd237e75e4b3d915b8ae5f979eb883833563 Author: Ferenc Wagner wf...@niif.hu Date: Mon

Re: [lxc-devel] [PATCH 0/7] Last minute signal stuff (now in separate mails)

2010-06-07 Thread Daniel Lezcano
On 06/07/2010 12:37 PM, Ferenc Wagner wrote: Daniel Lezcanodaniel.lezc...@free.fr writes: On 06/06/2010 11:07 PM, Ferenc Wagner wrote: The first part is some tinkering to make lxc compile under Debian Lenny. The dangerous part is the signal forwarding and the process group

[lxc-devel] [GIT] lxc branch, master, updated. 79881dc61f912321f3004531711071a051f80220

2010-06-07 Thread Daniel Lezcano
79881dc61f912321f3004531711071a051f80220 Author: Daniel Lezcano dlezc...@fr.ibm.com Date: Mon Jun 7 13:25:30 2010 +0200 fix ipv6 acast / mcast restriction Pointer comparison is buggy as they are never null. For an ipv6 address configuration, we always zeroed the structure, hence the bcast and acast structure

[lxc-devel] [GIT] lxc branch, master, updated. 89875e177f53385b556c5e33ec32bf4de4ae5a89

2010-06-07 Thread Daniel Lezcano
- commit 89875e177f53385b556c5e33ec32bf4de4ae5a89 Author: Daniel Lezcano dlezc...@fr.ibm.com Date: Mon Jun 7 14:31:56 2010 +0200 update .gitignore Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com commit 7ddc8f2451f714659aa9d1ba720a34a525926be5 Author: Daniel Lezcano

Re: [lxc-devel] [PATCH 0/7] Last minute signal stuff (now in separate mails)

2010-06-07 Thread Daniel Lezcano
On 06/07/2010 03:27 PM, Ferenc Wagner wrote: Daniel Lezcanodaniel.lezc...@free.fr writes: On 06/07/2010 12:37 PM, Ferenc Wagner wrote: there's another failure I get on my work machine (with my original patchset with the above errors corrected): gcc -I../../src -g -O2 -g -Wall -O2 -Wall

[lxc-devel] [GIT] lxc branch, master, updated. c147356ac8a11a6249aa4528b285609058e12b82

2010-06-02 Thread Daniel Lezcano
- commit c147356ac8a11a6249aa4528b285609058e12b82 Author: Greg Kurz gk...@fr.ibm.com Date: Wed Jun 2 15:03:34 2010 +0200 kill white spaces in lxc_init.c Signed-off-by: Greg Kurz gk...@fr.ibm.com Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com commit

[lxc-devel] [GIT] lxc branch, master, updated. 5b406adb506fff621e03be524b1529f31846b0f7

2010-06-02 Thread Daniel Lezcano
-kl.de Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- Summary of changes: scripts/lxc-ubuntu.in | 16 1 files changed, 8 insertions(+), 8 deletions(-) hooks/post-receive -- lxc

[lxc-devel] [GIT] lxc branch, master, updated. 5fad0874c3ff58afeb5c427a7ef1d211d3c5ce37

2010-06-01 Thread Daniel Lezcano
5fad0874c3ff58afeb5c427a7ef1d211d3c5ce37 Author: Daniel Lezcano dlezc...@fr.ibm.com Date: Tue Jun 1 12:24:17 2010 +0200 fix compilation warning Fix compilation warning: lxc_console.c: In function ‘master_handler’: lxc_console.c:175: warning: ignoring return value of ‘write’, declared with attribute

[lxc-devel] [PATCH 1/4] ubunutu template

2010-06-01 Thread Daniel Lezcano
From: Willem Meier wilhelm.me...@fh-kl.de Ubuntu [lucid] template script. Allows to create an ubuntu container with the template options. Signed-off-by: Willem Meier wilhelm.me...@fh-kl.de Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- configure.ac |1 + scripts/Makefile.am

[lxc-devel] [PATCH 2/4] Fix ubuntu template

2010-06-01 Thread Daniel Lezcano
From: Daniel Lezcano daniel.lezc...@free.fr - Fixed rootfs path. - Removed network section, it should to be passed to the lxc-create configuration option in order to concatenate the configuration files - Generate en_US local instead of de_DE Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com

[lxc-devel] [PATCH 4/4] fix busybox template

2010-06-01 Thread Daniel Lezcano
Fix various bug with the busybox template: * add a warning when busybox is not statically linked * delete the password for root (chpasswd is not available for all busybox) * add the new pts option Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- scripts/lxc-busybox.in | 14

Re: [lxc-devel] releasing 0.6.6 soon

2010-05-30 Thread Daniel Lezcano
On 05/29/2010 01:15 AM, Ferenc Wagner wrote: Daniel Lezcanodaniel.lezc...@free.fr writes: I will release a 0.6.6 version. If someone noticed a bug or has a patch to send, please let me know before I put a tag. I'd really like to see some sort of signal forwarding in lxc-start, and

[lxc-devel] [GIT] lxc branch, master, updated. b3df193c5035ac866de1e4e9d484431ce707c4ad

2010-05-28 Thread Daniel Lezcano
b3df193c5035ac866de1e4e9d484431ce707c4ad Author: Daniel Lezcano dlezc...@fr.ibm.com Date: Fri May 28 11:49:25 2010 +0200 fix whitespace Fix whitespace. Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- Summary of changes: src/lxc/conf.c

[lxc-devel] [GIT] lxc branch, master, updated. 5045eedff022d8efe004741898254578b146c1eb

2010-05-28 Thread Daniel Lezcano
- commit 5045eedff022d8efe004741898254578b146c1eb Author: Daniel Lezcano daniel.lezc...@free.fr Date: Fri May 28 17:39:11 2010 +0200 disable rootfs automatic detection Avoid a warning at compile time by disabling temporary the code. Signed-off

[lxc-devel] [GIT] lxc branch, master, updated. b8da590f0e90f70baa2c29488db554d55507db0d

2010-05-27 Thread Daniel Lezcano
b8da590f0e90f70baa2c29488db554d55507db0d Author: Michel Normand norm...@fr.ibm.com Date: Thu May 27 14:26:09 2010 +0200 lxc-kill man update about SIGSTOP and SIGKILL Signed-off-by: Michel Normand norm...@fr.ibm.com Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com

[lxc-devel] [GIT] lxc branch, master, updated. 0cd0cf5c1559c1de2eaa471728fde63f0f7a1db2

2010-05-27 Thread Daniel Lezcano
0cd0cf5c1559c1de2eaa471728fde63f0f7a1db2 Author: Daniel Lezcano dlezc...@fr.ibm.com Date: Thu May 27 16:27:15 2010 +0200 remove unused field These fields were moved to another structure but not removed from there. Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com

[lxc-devel] [GIT] lxc branch, master, updated. d674be08d4b282bb4717c51440811e39d3c2431e

2010-05-27 Thread Daniel Lezcano
- commit d674be08d4b282bb4717c51440811e39d3c2431e Author: Daniel Lezcano daniel.lezc...@free.fr Date: Thu May 27 14:27:13 2010 +0200 move lxc-init to $libdir/lxc As specified by FHS: /usr/lib includes object files, libraries, and internal binaries

Re: [lxc-devel] use defined rootfs mount point regression?

2010-05-21 Thread Daniel Lezcano
On 05/20/2010 10:40 PM, Nathan Lynch wrote: Hi, $ find /tmp/tmp.zNMDgzalhM -print /tmp/tmp.zNMDgzalhM /tmp/tmp.zNMDgzalhM/proc /tmp/tmp.zNMDgzalhM/dev /tmp/tmp.zNMDgzalhM/dev/shm /tmp/tmp.zNMDgzalhM/bin /tmp/tmp.zNMDgzalhM/bin/true /tmp/tmp.zNMDgzalhM/lib64

Re: [lxc-devel] lxc-start leaves temporary pivot dir behind

2010-05-06 Thread Daniel Lezcano
Ferenc Wagner wrote: Ferenc Wagner wf...@niif.hu writes: Daniel Lezcano dlezc...@fr.ibm.com writes: Ferenc Wagner wrote: Daniel Lezcano daniel.lezc...@free.fr writes: Ferenc Wagner wrote: While playing with lxc-start, I noticed that /tmp is infested by empty lxc-r* directories

Re: [lxc-devel] lxc-unshare woes and signal forwarding in lxc-start

2010-05-06 Thread Daniel Lezcano
Ferenc Wagner wrote: Daniel Lezcano daniel.lezc...@free.fr writes: Ferenc Wagner wrote: Daniel Lezcano daniel.lezc...@free.fr writes: Ferenc Wagner wrote: I'd like to use lxc-start as a wrapper, invisible to the parent and the (jailed) child

Re: [lxc-devel] [PATCH] Unshare user namespace as well

2010-05-04 Thread Daniel Lezcano
Mikhail Gusarov wrote: Unshare user namespace to make sure setrlimit and other per-user limits are accounted properly in containers Signed-off-by: Mikhail Gusarov dotted...@dottedmag.net --- src/lxc/start.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

Re: [lxc-devel] share_via_fs patch for 2.6.33 ?

2010-04-16 Thread Daniel Lezcano
Ryousei Takano wrote: Hi Daniel, On Apr 17, 2010, at 4:10 AM, Daniel Lezcano wrote: Daniel Lezcano wrote: Julian Thomé wrote: Hello mailing list, Daniel Lezcano wrote a patch to make it possible to connect to a unix domain socket, which belongs to another network namespace. The patch

Re: [lxc-devel] Fixed (hacked) LXC to apply mount options for bind mounts

2010-03-15 Thread Daniel Lezcano
Ciprian Dorin, Craciun wrote: On Mon, Mar 8, 2010 at 11:35 PM, Ciprian Dorin, Craciun ciprian.crac...@gmail.com wrote: Hello all! This bug stalked me for a while, but only now it bit me quite badly... (Lost about an hour of work...) So the culprit: inside the fstab file for

Re: [lxc-devel] [Lxc-users] child setpgid [...] : No such process

2010-03-12 Thread Daniel Lezcano
l...@zitta.fr wrote: Le 12/03/2010 13:51, Daniel Lezcano a écrit : l...@zitta.fr wrote: Le 11/03/2010 19:47, Daniel Lezcano a écrit : l...@zitta.fr wrote: I created a new container (karmic), then I type any command there is curious message, but it works

[lxc-devel] [GIT] lxc branch, master, updated. 6a3111b87e838561db952255a3770a1e85eb361b

2010-02-24 Thread Daniel Lezcano
- commit 6a3111b87e838561db952255a3770a1e85eb361b Author: Daniel Lezcano dlezc...@fr.ibm.com Date: Wed Feb 24 16:24:55 2010 +0100 add missing cgroup include Fix the warning: start.c: In function ‘lxc_fini’: start.c:250: warning: implicit declaration

Re: [lxc-devel] read-only container root

2010-02-15 Thread Daniel Lezcano
Michael Tokarev wrote: lxc-start: No such file or directory - failed to mount a new instance of '/dev/pts' I'm experimenting with a read-only root fs in the container. So far it does not work. First of all, when trying to start a container in a read-only root lxc-start complains:

[lxc-devel] [patch 03/10] use a mainloop for the console

2010-02-04 Thread Daniel Lezcano
Use the mainloop to manage io of the console. Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- src/lxc/lxc_console.c | 163 ++ 1 file changed, 88 insertions(+), 75 deletions(-) Index: lxc/src/lxc/lxc_console.c

[lxc-devel] [patch 02/10] factor-out-console code

2010-02-04 Thread Daniel Lezcano
Factore out the console code and encapsulate the code in functions. Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- src/lxc/lxc_console.c | 67 -- 1 file changed, 43 insertions(+), 24 deletions(-) Index: lxc/src/lxc/lxc_console.c

[lxc-devel] [patch 07/10] count the number of tasks in the container

2010-02-04 Thread Daniel Lezcano
This patch adds a function to count the number of tasks in the container. Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- src/lxc/cgroup.c | 27 +++ src/lxc/cgroup.h |2 +- 2 files changed, 28 insertions(+), 1 deletion(-) Index: lxc/src/lxc/cgroup.c

[lxc-devel] [patch 05/10] rename network type enum

2010-02-04 Thread Daniel Lezcano
Use a prefixed enum to avoid conflict later. Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- src/lxc/conf.c| 14 +++--- src/lxc/conf.h| 12 ++-- src/lxc/confile.c | 10 +- 3 files changed, 18 insertions(+), 18 deletions(-) Index: lxc/src/lxc/conf.c

Re: [lxc-devel] LXC container fails to start by complaining that it is unable to unmount the old pivot-root

2010-02-02 Thread Daniel Lezcano
Andrian Nord wrote: On Mon, Feb 01, 2010 at 01:54:15PM -0500, Michael H. Warfield wrote: On Mon, 2010-02-01 at 19:46 +0200, Ciprian Dorin, Craciun wrote: Hello all! I have a quite strange problem: the container fails to start and complains about being unable to unmount the

<    1   2   3