mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
qemu_snapshot: enable deletion of external snapshots
Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
cadbf40d05
commit
85931fce74
@ -3103,9 +3103,9 @@ qemuSnapshotDeleteValidate(virDomainObj *vm,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (virDomainSnapshotIsExternal(snap) &&
|
if (virDomainSnapshotIsExternal(snap) &&
|
||||||
!(flags & VIR_DOMAIN_SNAPSHOT_DELETE_CHILDREN_ONLY)) {
|
(flags & VIR_DOMAIN_SNAPSHOT_DELETE_CHILDREN)) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||||
_("deletion of external disk snapshots not supported"));
|
_("deletion of external disk snapshots with children not supported"));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user