]> xenbits.xensource.com Git - libvirt.git/commit
snapshot: allow block devices past cgroup
authorEric Blake <eblake@redhat.com>
Mon, 7 May 2012 22:56:08 +0000 (16:56 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 8 May 2012 21:59:58 +0000 (15:59 -0600)
commit8be304ecb9c8294c9ca3ef7324dea8228e496f9c
treee734ca8eb5c5d75106f91e51429db2f633c71427
parent75d155ec26fd2d6f4f95c3238b44309dca6caf34
snapshot: allow block devices past cgroup

It turns out that when cgroups are enabled, the use of a block device
for a snapshot target was failing with EPERM due to libvirt failing
to add the block device to the cgroup whitelist.  See also
https://bugzilla.redhat.com/show_bug.cgi?id=810200

* src/qemu/qemu_driver.c
(qemuDomainSnapshotCreateSingleDiskActive)
(qemuDomainSnapshotUndoSingleDiskActive): Account for cgroup.
(qemuDomainSnapshotCreateDiskActive): Update caller.
src/qemu/qemu_driver.c