]> git.proxmox.com Git - mirror_lxc.git/commit
cgroupfs: support older kernels without cgroup.clone_children
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 22 Jan 2014 16:49:00 +0000 (10:49 -0600)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 23 Jan 2014 01:01:36 +0000 (20:01 -0500)
commit0a4d93787d4be78dc5e2873cf7c605c01d383792
treeb3221a4b4a4c57bcdfdc430a7b21848e862fc8e9
parent8c3a756ed4cf22f9fdab5f95d067321e6ddcc425
cgroupfs: support older kernels without cgroup.clone_children

When creating a cgroup, detect whether cgroup.clone_children
exists.  If not, then manually copy the parent's cpuset.cpus
and cpuset.mems values.

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