]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Don't assume use of /sys/fs/cgroup
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 6 Sep 2012 14:19:32 +0000 (15:19 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 7 Sep 2012 12:30:20 +0000 (13:30 +0100)
commita4fd740561aaf4c48b5fefd6b7a39d9963d1147a
tree55b6c7aeca2fb2742d1ecb0780f38537d188b203
parent48d112210df29f185ba3f4b5eca33caf1ab0a616
Don't assume use of /sys/fs/cgroup

The introduction of /sys/fs/cgroup came in fairly recent kernels.
Prior to that time distros would pick a custom directory like
/cgroup or /dev/cgroup. We need to auto-detect where this is,
rather than hardcoding it

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/lxc/lxc_container.c
src/util/cgroup.h