]> git.ipfire.org Git - thirdparty/lxc.git/commit
cgmanager: slow down there (don't always grab abs cgroup path)
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 20 May 2014 16:47:17 +0000 (11:47 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 20 May 2014 21:09:13 +0000 (17:09 -0400)
commitfd527175ad02cef8a33999865392f30e69c70dfa
treea1b534a4621282b203f271b30068728bdd9b91d5
parentfd4d297dd62035dc7ef937181f32803cbcfb998d
cgmanager: slow down there (don't always grab abs cgroup path)

When I converted attach and enter to using move_pid_abs, these needed
to use the new get_pid_cgroup_abs method to get an absolute path.  But
for some inexplicable reason I also converted the functions which get
and set cgroup properties to use the absolute paths.  These are simply
not compatible with the cgmanager set_value and get_value methods.
This breaks for instance lxc-test-cgpath.

So undo that.  With this patch lxc-test-cgpath, lxc-test-autotest,
and lxc-test-concurrent once again pass in a nested container.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/cgmanager.c