[lxc-devel] [GIT] lxc branch, master, updated. 6a6ad7af58ba541ea27300fdd05715ef9454ce8e
Daniel Lezcano
git at users.sourceforge.net
Wed Oct 7 14:06:50 UTC 2009
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 6a6ad7af58ba541ea27300fdd05715ef9454ce8e (commit)
via a9e61274bc2c316c4dbded00d9b75ff6419f42d6 (commit)
via ded1d23faabc31a5bbbf5f52c17423c59f63e23a (commit)
via fa4b063c6edc4182cc4f87cae350e4c0225231ad (commit)
via 28034e531e66f30a3ac5d525033ed8a72c5d7072 (commit)
via d97b36f8f87775b81009a39fbbdd7b491ed4f605 (commit)
via 787dc17c3bda226cdb500d89baece16d99b8a11f (commit)
via 46968ea3cc8f8ee80fee87efcebc783bb3e7486a (commit)
via e98fe68b382a6bf0153ce6e2f5c9cdce1e9d2bf2 (commit)
via 66aeffc7218618890f02bb962b46fbd435443b55 (commit)
via 5379ce7836677149c0b614fcd0be0cbe16ad1709 (commit)
via 6e47d49323feb328bb6c0093bb6022079193d234 (commit)
via 2137dc998b884a4f3e0b1f365bb14f6ccd010243 (commit)
via 3cc5de3619c0ac6c2a9046ff7e50e9d6dfc1d0fd (commit)
via 724e753cb0055b84f896522e8c5ec45ad996c195 (commit)
via 96fa1ff0d1aa3e1f3ab96297bfbf3a3613b5fe3b (commit)
via 35be16d7cc331631174e422fd332e1c8902e464a (commit)
via 50c8bf0547c83ad0ffc671ea266a6fbb6806fd77 (commit)
via d8cc9804aefe14783a40b59694e3f57ecf6643ff (commit)
via 2dcb28a9d0381beac65d2fb89f0b4cb51eb4fd40 (commit)
via e2001e1ceade7229352281575c72a454f5de8789 (commit)
via 9227a12a1de4d8d9adb1f27ae682142c038fa0b9 (commit)
from cfd1dc09320c200210901b98e88faeab99e9fc9f (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 6a6ad7af58ba541ea27300fdd05715ef9454ce8e
Author: Daniel Lezcano <dlezcano at fr.ibm.com>
Date: Wed Oct 7 16:06:09 2009 +0200
make container to die when parent dies
When the parent of the first process dies, the container stays there
making very difficuly to track it and to kill. We have to use the
lxc-ps --lxc and kill the processes, hoping we kill the init process
of the container. That's not a big deal until we have thousand of
processes in the container :)
We want to keep the parent of the container init always there, this
process is responsible to manage the container, provide tty, notify
the container changing states and ensure self exclusion (eg. avoid
to launch several containers with the same name).
If this process dies, we consider that as a fatal error and we make
the child process to die too. This patch will just add the prctl to
to send a SIGKILL to the container init process when its parent exits
For the point of view of the pid namespace, when the init process dies
all the processes of the namespace are killed too.
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
commit a9e61274bc2c316c4dbded00d9b75ff6419f42d6
Author: Daniel Lezcano <dlezcano at fr.ibm.com>
Date: Wed Oct 7 16:06:09 2009 +0200
Simplify the mainloop
The number of fds passed to epoll is just a hint for the kernel.
In our case, we know this is often 2, let's remove this parameter
from lxc_mainloop_open and cleanup the code around the caller of
this function.
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
commit ded1d23faabc31a5bbbf5f52c17423c59f63e23a
Author: Daniel Lezcano <dlezcano at fr.ibm.com>
Date: Wed Oct 7 16:06:09 2009 +0200
format and fix small typos
Indent and make the code cleaner.
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
commit fa4b063c6edc4182cc4f87cae350e4c0225231ad
Author: Michel Normand <normand at fr.ibm.com>
Date: Wed Oct 7 16:06:09 2009 +0200
remove dead code in monitor.c
This code is not used in lxc.
Signed-off-by: Michel Normand <normand at fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
commit 28034e531e66f30a3ac5d525033ed8a72c5d7072
Author: Michel Normand <normand at fr.ibm.com>
Date: Wed Oct 7 16:06:09 2009 +0200
remove src/lxc/lxc_priority.c
this was useless since old commit
576f946d784dbe7bf9008565647bde81ed064dc2
that intoduced the cgroup support.
Signed-off-by: Michel Normand <normand at fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
commit d97b36f8f87775b81009a39fbbdd7b491ed4f605
Author: Daniel Lezcano <dlezcano at fr.ibm.com>
Date: Wed Oct 7 16:06:09 2009 +0200
returns a specific info when we have ECONNREFUSED
When a command can not be send because the connection is refused,
that means the container is stopped. Let's report this specific
case instead of raising an error.
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
Signed-off-by: Michel Normand <normand at fr.ibm.com>
commit 787dc17c3bda226cdb500d89baece16d99b8a11f
Author: Daniel Lezcano <dlezcano at fr.ibm.com>
Date: Wed Oct 7 16:06:09 2009 +0200
remove dead state code
Remove old dead code.
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
commit 46968ea3cc8f8ee80fee87efcebc783bb3e7486a
Author: Daniel Lezcano <dlezcano at fr.ibm.com>
Date: Wed Oct 7 16:06:09 2009 +0200
fix the abstract unix socket name
Let's use a more sexy name
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
commit e98fe68b382a6bf0153ce6e2f5c9cdce1e9d2bf2
Author: Daniel Lezcano <dlezcano at fr.ibm.com>
Date: Wed Oct 7 16:06:09 2009 +0200
handle the state command
handle the state command.
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
commit 66aeffc7218618890f02bb962b46fbd435443b55
Author: Daniel Lezcano <dlezcano at fr.ibm.com>
Date: Wed Oct 7 16:06:09 2009 +0200
returns the state of the container with the af_unix socket
Like the pid, let's store the state in the handler and modify it
at runtime. Return the value of state with a specific command.
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
commit 5379ce7836677149c0b614fcd0be0cbe16ad1709
Author: Daniel Lezcano <dlezcano at fr.ibm.com>
Date: Wed Oct 7 16:06:08 2009 +0200
do some cleanup around the old init pid file
This file is no longer used, let's remove it.
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
commit 6e47d49323feb328bb6c0093bb6022079193d234
Author: Daniel Lezcano <dlezcano at fr.ibm.com>
Date: Wed Oct 7 16:06:08 2009 +0200
remove dead stop code
Remove old dead code.
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
commit 2137dc998b884a4f3e0b1f365bb14f6ccd010243
Author: Daniel Lezcano <dlezcano at fr.ibm.com>
Date: Wed Oct 7 16:06:08 2009 +0200
handle the stop command
Handle the stop command. The stop command waits for the peer to
disconnect, that means the peer has exited, so it is safe to
return to the user control. By this way, we ensure a stop command
followed by a start or a destroy won't fail with a race condition
because the start command is not yet finised.
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
Signed-off-by: Michel Normand <normand at fr.ibm.com>
commit 3cc5de3619c0ac6c2a9046ff7e50e9d6dfc1d0fd
Author: Michel Normand <normand at fr.ibm.com>
Date: Wed Oct 7 16:06:08 2009 +0200
check permissions when receiving command
report to command requester the errno if credential failure,
rather than to only close the connection.
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
Signed-off-by: Michel Normand <normand at fr.ibm.com>
commit 724e753cb0055b84f896522e8c5ec45ad996c195
Author: Michel Normand <normand at fr.ibm.com>
Date: Wed Oct 7 16:06:08 2009 +0200
repackage previous code to new commands.c
move some code of start.c to new commands.c and to console.c
Signed-off-by: Michel Normand <normand at fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
commit 96fa1ff0d1aa3e1f3ab96297bfbf3a3613b5fe3b
Author: Michel Normand <normand at fr.ibm.com>
Date: Wed Oct 7 16:06:08 2009 +0200
add an additionnal abstract socket to prepare for more commands
Replace the current tty service socket by a general command service
socket and plug for the moment only the existing tty service.
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
Signed-off-by: Michel Normand <normand at fr.ibm.com>
commit 35be16d7cc331631174e422fd332e1c8902e464a
Author: Michel Normand <normand at fr.ibm.com>
Date: Wed Oct 7 16:06:08 2009 +0200
ttyclient_handler is only cleanup on disconnect
this is only a code split to show the real functionality of this
function that is not expecting any received data on the connection
Signed-off-by: Michel Normand <normand at fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
commit 50c8bf0547c83ad0ffc671ea266a6fbb6806fd77
Author: Michel Normand <normand at fr.ibm.com>
Date: Wed Oct 7 16:06:08 2009 +0200
change the way tty service is added to mainloop
Move the tty service handler to use the mainloop for a future
consistent usage.
Signed-off-by: Michel Normand <normand at fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
commit d8cc9804aefe14783a40b59694e3f57ecf6643ff
Author: Michel Normand <normand at fr.ibm.com>
Date: Wed Oct 7 16:06:08 2009 +0200
accept commands from root
Commands should be accepted when they are coming from root.
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
Signed-off-by: Michel Normand <normand at fr.ibm.com>
commit 2dcb28a9d0381beac65d2fb89f0b4cb51eb4fd40
Author: Michel Normand <normand at fr.ibm.com>
Date: Wed Oct 7 16:06:08 2009 +0200
lxc_af_unix_rcv_credential to report rcvd length
to have better error reporting done by caller.
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
Signed-off-by: Michel Normand <normand at fr.ibm.com>
commit e2001e1ceade7229352281575c72a454f5de8789
Author: Michel Normand <normand at fr.ibm.com>
Date: Wed Oct 7 16:06:08 2009 +0200
export struct lxc_handler from start.c to start.h
Will be required by a futur patch
Signed-off-by: Michel Normand <normand at fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
commit 9227a12a1de4d8d9adb1f27ae682142c038fa0b9
Author: Michel Normand <normand at fr.ibm.com>
Date: Wed Oct 7 16:06:08 2009 +0200
local struct name changed in mainloop.c
Two files have each their own structure definition with the same
name. The types name don't conflict but in the name of sanity, let's
rename these structures.
not critical isn't it :)
Signed-off-by: Michel Normand <normand at fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
-----------------------------------------------------------------------
Summary of changes:
src/lxc/Makefile.am | 1 +
src/lxc/af_unix.c | 12 ++-
src/lxc/commands.c | 235 +++++++++++++++++++++++++++++++++++++++
src/lxc/{start.h => commands.h} | 38 +++++--
src/lxc/console.c | 109 ++++++++++++++-----
src/lxc/create.c | 10 --
src/lxc/freezer.c | 10 +--
src/lxc/lxc.h | 11 --
src/lxc/lxc_priority.c | 78 -------------
src/lxc/mainloop.c | 16 ++-
src/lxc/mainloop.h | 2 +-
src/lxc/monitor.c | 63 +----------
src/lxc/start.c | 201 ++++------------------------------
src/lxc/start.h | 12 ++-
src/lxc/state.c | 151 ++++++++++---------------
src/lxc/state.h | 2 -
src/lxc/stop.c | 74 ++++++++----
17 files changed, 514 insertions(+), 511 deletions(-)
create mode 100644 src/lxc/commands.c
copy src/lxc/{start.h => commands.h} (58%)
delete mode 100644 src/lxc/lxc_priority.c
hooks/post-receive
--
lxc
More information about the lxc-devel
mailing list