[libvirt] [PATCH 4/4] snapshot: qemu: Allow redefinition of external snapshots

Peter Krempa pkrempa at redhat.com
Thu Jan 3 13:38:47 UTC 2013


A redefinition of an external inactive snapshot/checkpoint wasn't
possible without this change.
---
 src/qemu/qemu_driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 4c7558d..3a52b47 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -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;
                 }
-- 
1.8.0.2




More information about the libvir-list mailing list