]> git.ipfire.org Git - thirdparty/libvirt.git/commit
snapshot: use qemu-img on disks in use at time of snapshot
authorEric Blake <eblake@redhat.com>
Tue, 4 Oct 2011 23:13:48 +0000 (17:13 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 5 Oct 2011 17:33:39 +0000 (11:33 -0600)
commit70e015e12f3bc14ad592fb5d554795a61cd99881
treee5a35cfd5c6324f5fcfffdf1bf3eb00413fec1cf
parent3c797404a520db95c12eaf4b83518ae5cb42d4e5
snapshot: use qemu-img on disks in use at time of snapshot

Once we know which set of disks belong to a snapshot, reverting or
deleting that snapshot should visit just those disks, rather than
also visiting disks that were hot-plugged in the meantime or
skipping disks that were hot-unplugged in the meantime.

* src/qemu/qemu_domain.c (qemuDomainSnapshotForEachQcow2): Use
snapshot domain details when available.  Avoid NULL deref.
src/qemu/qemu_domain.c