]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
snapshot: qemu: Allow redefinition of external snapshots
authorPeter Krempa <pkrempa@redhat.com>
Thu, 3 Jan 2013 13:30:07 +0000 (14:30 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Sat, 5 Jan 2013 07:40:01 +0000 (08:40 +0100)
A redefinition of an external inactive snapshot/checkpoint wasn't
possible without this change.

src/qemu/qemu_driver.c

index 92476bd57b62c33bf34e30a183b0d399c363c156..ac4c0942b2abcdd804488c25559926881a5b62dc 100644 (file)
@@ -11410,7 +11410,7 @@ qemuDomainSnapshotCreateXML(virDomainPtr domain,
 
             if (def->dom) {
                 if (def->state == VIR_DOMAIN_DISK_SNAPSHOT ||
-                    def->memory == VIR_DOMAIN_SNAPSHOT_LOCATION_EXTERNAL) {
+                    virDomainSnapshotDefIsExternal(def)) {
                     align_location = VIR_DOMAIN_SNAPSHOT_LOCATION_EXTERNAL;
                     align_match = false;
                 }