mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
snapshot: remove mutually exclusive memory and disk-only duplicate check
The work was done at the time of snapshot xmlstring parsing if (offline && def->memory && def->memory != VIR_DOMAIN_SNAPSHOT_LOCATION_NONE) { virReportError(...); }
This commit is contained in:
parent
0ec376c20a
commit
ed91e32b08
@ -11730,14 +11730,6 @@ qemuDomainSnapshotCreateXML(virDomainPtr domain,
|
|||||||
"with external checkpoints"));
|
"with external checkpoints"));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
if ((def->memory == VIR_DOMAIN_SNAPSHOT_LOCATION_EXTERNAL ||
|
|
||||||
def->memory == VIR_DOMAIN_SNAPSHOT_LOCATION_INTERNAL) &&
|
|
||||||
flags & VIR_DOMAIN_SNAPSHOT_CREATE_DISK_ONLY) {
|
|
||||||
virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
|
|
||||||
_("disk-only snapshot creation is not compatible with "
|
|
||||||
"memory snapshot"));
|
|
||||||
goto cleanup;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (flags & VIR_DOMAIN_SNAPSHOT_CREATE_REDEFINE) {
|
if (flags & VIR_DOMAIN_SNAPSHOT_CREATE_REDEFINE) {
|
||||||
/* Prevent circular chains */
|
/* Prevent circular chains */
|
||||||
|
Loading…
Reference in New Issue
Block a user