mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
virDomainCheckpointRedefinePrep: Assign default bitmap names when domain XML is missing
Previously we'd assign the default checkpoint bitmap names in virDomainCheckpointAlignDisks. In cases when the checkpoint is redefined without a domain XML virDomainCheckpointAlignDisks is not called. Add an explicit call to virDomainCheckpointDefAssignBitmapNames to restore functionality. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
3a340872f8
commit
8fdc37711b
@ -508,6 +508,9 @@ virDomainCheckpointRedefinePrep(virDomainObjPtr vm,
|
|||||||
|
|
||||||
if (virDomainCheckpointAlignDisks(def) < 0)
|
if (virDomainCheckpointAlignDisks(def) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
} else {
|
||||||
|
if (virDomainCheckpointDefAssignBitmapNames(def) < 0)
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (def->parent.parent_name &&
|
if (def->parent.parent_name &&
|
||||||
|
Loading…
Reference in New Issue
Block a user