From 8fdc37711b42cd8cd75f2903629f990c74d67ad0 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Mon, 22 Mar 2021 14:44:55 +0100 Subject: [PATCH] virDomainCheckpointRedefinePrep: Assign default bitmap names when domain XML is missing MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Ján Tomko --- src/conf/checkpoint_conf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/conf/checkpoint_conf.c b/src/conf/checkpoint_conf.c index f8704852e0..cd48570b51 100644 --- a/src/conf/checkpoint_conf.c +++ b/src/conf/checkpoint_conf.c @@ -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 && -- 2.47.2