• D
    Remount cgroups controllers after setting up new /sys in LXC · a8c0b2fe
    Daniel P. Berrange 提交于
    Normal practice is for cgroups controllers to be mounted at
    /sys/fs/cgroup. When setting up a container, /sys is mounted
    with a new sysfs instance, thus we must re-mount all the
    cgroups controllers. The complexity is that we must mount
    them in the same layout as the host OS. ie if 'cpu' and 'cpuacct'
    were mounted at the same location in the host we must preserve
    this in the container. Also if any controllers are co-located
    we must setup symlinks from the individual controller name to
    the co-located mount-point
    Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
    a8c0b2fe
cgroup.h 4.8 KB