snapshot: qemu: Allow redefinition of external snapshots

A redefinition of an external inactive snapshot/checkpoint wasn't
possible without this change.
This commit is contained in:
Peter Krempa 2013-01-03 14:30:07 +01:00
parent 709b0f37c5
commit 731a5a4df7

View 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;
}