]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/cgfs.c
cgroupfs: cpuset support for kernels without cgroup.clone_children
authorRobert Vogelgesang <vogel@users.sourceforge.net>
Mon, 27 Jan 2014 17:35:23 +0000 (18:35 +0100)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 29 Jan 2014 09:07:28 +0000 (09:07 +0000)
commitd703c2b15ad39a5a0df4a2b788321481d56c93cf
tree04ebaeeec7836441215d620a788332384b39a747
parent9749441a0e8072f43e955fba47e07bfd015d0a45
cgroupfs: cpuset support for kernels without cgroup.clone_children

Hi,

as promised last week, here's my patch for cpuset cgroup support for
kernels without the cgroup.clone_children feature.

My initial patch used "#include <linux/version.h>" and the macros defined
there to decide if cgroup.clone_children should be used or not.  After
having seen Serge Hallyn's patch which he posted to the list last Wednesday,
where he used stat() to check if the cgroup.clone_children file is there,
I rewrote my patch to do the same.

The patch is against 1.0.0.beta3, and it is tested successfully with
RHEL-6's kernel version 2.6.32-431.3.1.el6, compiled without cgmanager
(I've so far not tried to use cgmanager in RHEL-6).

In addition to fixing the cpuset cgroup setup, this patch also fixes a
wrong argument in a call to handle_cgroup_settings() in the same context.

Robert

Signed-off-by: Robert Vogelgesang <vogel@users.sourceforge.net>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/cgroup.c