[lxc-devel] [GIT] lxc branch, master, updated. 305bc646f5a579fb258a66dd34f4d9488d0d08fe
Daniel Lezcano
git at users.sourceforge.net
Thu Apr 8 07:44:38 UTC 2010
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "lxc".
The branch, master has been updated
via 305bc646f5a579fb258a66dd34f4d9488d0d08fe (commit)
via 2b30b861579107f638d0c5b6ce22dbedf99fa4b7 (commit)
via 7adff31cbb521d52c31a3e6e2447db8bcd8e3784 (commit)
via 91480a0f0a62732f3115d556b689d62d574294ae (commit)
via 563f2f2ccd2891661836c96f92f047a735355c1b (commit)
via 3bdf52d753ecf347b3b5cbff97675032f2de3e5e (commit)
via e0f888d910c2680acf6267391f88ab75ef66771f (commit)
from f78a1f32f41f6acbbf0b78e6498736dbd22e2301 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 305bc646f5a579fb258a66dd34f4d9488d0d08fe
Author: Daniel Lezcano <dlezcano at fr.ibm.com>
Date: Thu Apr 8 09:44:23 2010 +0200
Fail gracefully with attach
Fail when we try to attach to an non existing container
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
commit 2b30b861579107f638d0c5b6ce22dbedf99fa4b7
Author: Daniel Lezcano <dlezcano at fr.ibm.com>
Date: Thu Apr 8 09:44:23 2010 +0200
change to the same directory when attaching
This patch will try to change the default "/" directory to the
directory we were before attaching. In order to work correctly,
the path has to exist in the container, that makes sense with a
shared file system without rootfs.
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
commit 7adff31cbb521d52c31a3e6e2447db8bcd8e3784
Author: Daniel Lezcano <dlezcano at fr.ibm.com>
Date: Thu Apr 8 09:44:23 2010 +0200
fork/exec after attach
The command to attach has to be fork/exec.
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
commit 91480a0f0a62732f3115d556b689d62d574294ae
Author: Daniel Lezcano <daniel.lezcano at free.fr>
Date: Thu Apr 8 09:44:23 2010 +0200
restart the container at reboot
When the reboot is detected, reboot the container.
That needs to set all file descriptor opened by lxc-start
to be flagged with the close-on-exec flag, otherwise when
re-execing ourself, we inherit our own fd.
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
commit 563f2f2ccd2891661836c96f92f047a735355c1b
Author: Daniel Lezcano <daniel.lezcano at free.fr>
Date: Thu Apr 8 09:44:23 2010 +0200
shutdown the container when powering off the container
This patch allows to shutdown the container when the system
is powered off in the container.
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
commit 3bdf52d753ecf347b3b5cbff97675032f2de3e5e
Author: Daniel Lezcano <daniel.lezcan at free.fr>
Date: Thu Apr 8 09:44:23 2010 +0200
Store the container name in the handler
Store the container in the handler, so it is accessible
everywhere.
Signed-off-by: Daniel Lezcano <dlezcan at fr.ibm.com>
commit e0f888d910c2680acf6267391f88ab75ef66771f
Author: Daniel Lezcano <daniel.lezcano at free.fr>
Date: Thu Apr 8 09:44:23 2010 +0200
count the number of tasks in the container
This patch adds a function to count the number of tasks in the
container. The result is not reliable as it may change with a fork
or an exit, but in some cases, for example, there is only one task, or
the container is frozen, the result is accurate.
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
-----------------------------------------------------------------------
Summary of changes:
src/lxc/Makefile.am | 6 +-
src/lxc/cgroup.c | 27 +++++++
src/lxc/cgroup.h | 2 +-
src/lxc/commands.c | 7 ++
src/lxc/conf.c | 6 --
src/lxc/conf.h | 1 +
src/lxc/confile.c | 30 ++++++--
src/lxc/lxc.h | 3 +-
src/lxc/lxc_attach.c | 78 ++++++++++++++++-----
src/lxc/lxc_start.c | 19 ++++--
src/lxc/mainloop.c | 6 ++
src/lxc/start.c | 26 ++++++-
src/lxc/start.h | 1 +
src/lxc/utmp.c | 157 +++++++++++++++++++++++++++++++++++++++++
src/lxc/{version.c => utmp.h} | 9 +--
15 files changed, 331 insertions(+), 47 deletions(-)
create mode 100644 src/lxc/utmp.c
copy src/lxc/{version.c => utmp.h} (86%)
hooks/post-receive
--
lxc
More information about the lxc-devel
mailing list