]> git.ipfire.org Git - thirdparty/libvirt.git/commit
snapshot: qemu: Fix detection of external snapshots when deleting
authorPeter Krempa <pkrempa@redhat.com>
Fri, 19 Oct 2012 09:55:36 +0000 (11:55 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 13 Nov 2012 19:36:26 +0000 (20:36 +0100)
commit30f1bccf332c93aa646c6d5a69f1287a5d170983
tree8a0c4738edef6335e678dd045468b3ffea003c49
parente5aab47ab3a406a9da6056bd6761c96675aec547
snapshot: qemu: Fix detection of external snapshots when deleting

This patch adds a helper to determine if snapshots are external and uses
the helper to fix detection of those in snapshot deletion code.

Snapshots are external if they have an external memory image or if the
disk locations are external. As mixed snapshots are forbidden for now
we need to check just one disk to know.
src/conf/snapshot_conf.c
src/conf/snapshot_conf.h
src/libvirt_private.syms
src/qemu/qemu_driver.c