]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/monitor.c
lxc_monitor_open: prepend lxcpath
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 14 Feb 2013 16:30:55 +0000 (10:30 -0600)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 19 Feb 2013 19:46:25 +0000 (14:46 -0500)
commit9123e4718d0db98de2a2935cb2d0bcca1997a333
tree1e44262a7381c87b32f087eb1240f862e8b10a49
parentfbf5de31e3ba14226e30602fb21a50d3cca8db9f
lxc_monitor_open: prepend lxcpath

This is needed for lxc_wait and lxc_monitor to handle lxcpath.  However,
the full path name is limited to 108 bytes.  Should we use a md5sum of
the lxcpath instead of the path itself?

In any case, with this patch, lxc-wait and lxc-monitor work right with
respect to multiple lxcpaths.

The lxcpath is added to the lxc_handler to make it available most of the
places we need it.

I also remove function prototypes in monitor.h for two functions which
are not defined or used anywhere.

TODO: make cgroups tolerate multiple same-named containers.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
12 files changed:
src/lxc/freezer.c
src/lxc/lxc.h
src/lxc/lxc_freeze.c
src/lxc/lxc_monitor.c
src/lxc/lxc_unfreeze.c
src/lxc/lxccontainer.c
src/lxc/monitor.c
src/lxc/monitor.h
src/lxc/start.c
src/lxc/start.h
src/lxc/state.c
src/lxc/stop.c