[lxc-devel] [PATCH 1/1] cgroupfs: support older kernels without cgroup.clone_children

Serge Hallyn serge.hallyn at ubuntu.com
Thu Jan 23 02:36:29 UTC 2014


Quoting Stéphane Graber (stgraber at ubuntu.com):
> On Wed, Jan 22, 2014 at 10:49:00AM -0600, Serge Hallyn wrote:
> > 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 at ubuntu.com>
> 
> 
> We may want to go through our list of helper functions and
> merge/relocate some of those to utils.h as I'm suspecting it's not the
> first time we neded those particular ones.

FWIW I actually cut-pasted those from a revert from the last
time lxc did this.  Note that file_exists here acts differently
from others :)  Probably should come up with a different name
for it, then put it and set_value and get_value into utils.c.

-serge


More information about the lxc-devel mailing list