]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix handling of disk backing stores with cgroups
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 28 Apr 2010 15:25:42 +0000 (16:25 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 25 May 2010 14:57:54 +0000 (10:57 -0400)
commite596dbb32a4032e0510a22af5907b808e4820439
tree947fc94bb12d17d611bec8844856b63e71584a88
parent93500040f90fe2a7413da6f78543aab4644c5a82
Fix handling of disk backing stores with cgroups

The cgroups ACL code was only allowing the primary disk image.
It is possible to chain images together, so we need to search
for backing stores and add them to the ACL too. Since the ACL
only handles block devices, we ignore the EINVAL we get from
plain files. In addition it was missing code to teardown the
cgroup when hot-unplugging a disk

* src/qemu/qemu_driver.c: Allow backing stores in cgroup ACLs
  and add missing teardown code in unplug path
src/qemu/qemu_driver.c