]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Track symlinks for co-mounted cgroup controllers
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 5 Apr 2013 10:28:04 +0000 (11:28 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 15 Apr 2013 16:35:32 +0000 (17:35 +0100)
commit83336118db1f4bf46a0ecc48b39c021fc1133924
tree112cca89dbc54b25d474eba352a6a50b3d954cff
parent767596bdb4fffd4c45ba84369d84d924fb988780
Track symlinks for co-mounted cgroup controllers

If a cgroup controller is co-mounted with another, eg

   /sys/fs/cgroup/cpu,cpuacct

Then it is a requirement that there exist symlinks at

   /sys/fs/cgroup/cpu
   /sys/fs/cgroup/cpuacct

pointing to the real mount point. Add support to virCgroupPtr
to detect and track these symlinks

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/util/vircgroup.c
src/util/vircgrouppriv.h
tests/vircgroupmock.c
tests/vircgrouptest.c