[PATCH 2/2] virDomainCheckpointRedefinePrep: Assign default bitmap names when domain XML is missing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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.29.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux