]> git.ipfire.org Git - thirdparty/lxc.git/commit
cgfsng: defer to cgfs if needed subsystems are not available 956/head
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 8 Apr 2016 21:18:04 +0000 (16:18 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 8 Apr 2016 21:32:15 +0000 (16:32 -0500)
commit457ca9aa85c3682c2746f593090df2e1e6664d34
tree1e5fd5254fb287eb9039e33b69e73fe1542f50fb
parent32036de0dc9419a6df2a220a7c546688fa889708
cgfsng: defer to cgfs if needed subsystems are not available

This requires us to check that at cgfsng_ops_init, rather than
cgfs_init.  Cache the hierarchy and cgroup.use info globally
rather than putting it into the per-container info, as cgmanager
does.  This is ok as both cgroup.use and the list of usable
hierarchies are in fact global to a lxc run.

Closes #952

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/cgfsng.c