From: Peter Krempa Date: Thu, 3 Jan 2013 13:30:07 +0000 (+0100) Subject: snapshot: qemu: Allow redefinition of external snapshots X-Git-Tag: v1.0.2-rc1~286 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=731a5a4df7739e18f1837e9d8da0c315e4150135;p=thirdparty%2Flibvirt.git snapshot: qemu: Allow redefinition of external snapshots A redefinition of an external inactive snapshot/checkpoint wasn't possible without this change. --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 92476bd57b..ac4c0942b2 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; }