]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/conf.h
Initial support for cgmanager
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 14 Jan 2014 22:41:36 +0000 (16:41 -0600)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 16 Jan 2014 04:56:32 +0000 (23:56 -0500)
commitd4ef7c50ae980d13f6e7a44c595228a8cba9d8f2
tree4c81ff99285af5f724a381d96ce92feeaefb418e
parent9cde0368fbbfa61add2e73f8ccd5b00c1b0f2e08
Initial support for cgmanager

This patch splits out most of the cgroupfs-specific code, so that
cgroup-manager versions can be plugged in.  The case I did
not handle is cgroup_enter at lxc_attach.  I'm hoping that case can
be greatly simplified, but will worry about it after fleshing out the
cgroup manager handlers.

This also simplify the freezer functions.

This seems to not regress my common tests when running without
cgmanager, but I'd like to do a bit more testing before pushing.
However I was hoping to get some more eyes on this so am sending it
out now.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
13 files changed:
configure.ac
src/lxc/Makefile.am
src/lxc/attach.c
src/lxc/cgmanager.c [new file with mode: 0644]
src/lxc/cgroup.c
src/lxc/cgroup.h
src/lxc/commands.c
src/lxc/conf.c
src/lxc/conf.h
src/lxc/freezer.c
src/lxc/lxc.h
src/lxc/start.c
src/lxc/start.h