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:
Peter Krempa 2021-03-22 14:44:55 +01:00
parent 3a340872f8
commit 8fdc37711b

View File

@ -508,6 +508,9 @@ virDomainCheckpointRedefinePrep(virDomainObjPtr vm,
if (virDomainCheckpointAlignDisks(def) < 0)
return -1;
} else {
if (virDomainCheckpointDefAssignBitmapNames(def) < 0)
return -1;
}
if (def->parent.parent_name &&