Blame SOURCES/libvirt-qemuDomainBlockPivot-Ignore-failures-of-creating-active-layer-bitmap.patch

a41c76
From 0084cc867b6de11a1b5ac1207ada57a3cc43acaf Mon Sep 17 00:00:00 2001
a41c76
Message-Id: <0084cc867b6de11a1b5ac1207ada57a3cc43acaf@dist-git>
a41c76
From: Peter Krempa <pkrempa@redhat.com>
a41c76
Date: Tue, 21 Jul 2020 13:56:25 +0200
a41c76
Subject: [PATCH] qemuDomainBlockPivot: Ignore failures of creating active
a41c76
 layer bitmap
a41c76
a41c76
Ignore errors from creating "libvirt-tmp-activewrite" bitmap. This
a41c76
prevents failures of finishing blockjobs if the bitmap already exists.
a41c76
a41c76
Note that if the bitmap exists, the worst case that can happen is that
a41c76
more bits are marked as dirty in the resulting merge.
a41c76
a41c76
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
a41c76
Reviewed-by: Eric Blake <eblake@redhat.com>
a41c76
(cherry picked from commit 66dc4992fa8a51c4e774d32bcf75f26b1365e998)
a41c76
a41c76
rhel-8.3: https://bugzilla.redhat.com/show_bug.cgi?id=1857779
a41c76
rhel-av-8.2.1: not cloned yet
a41c76
Message-Id: <9cec292732836005d59b50a0701acb804ed1dda5.1595332476.git.pkrempa@redhat.com>
a41c76
a41c76
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
a41c76
---
a41c76
 src/qemu/qemu_driver.c | 2 +-
a41c76
 1 file changed, 1 insertion(+), 1 deletion(-)
a41c76
a41c76
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
a41c76
index 454d7b1c16..b5df0c63d4 100644
a41c76
--- a/src/qemu/qemu_driver.c
a41c76
+++ b/src/qemu/qemu_driver.c
a41c76
@@ -17659,7 +17659,7 @@ qemuDomainBlockPivot(virQEMUDriverPtr driver,
a41c76
         }
a41c76
 
a41c76
         if (bitmapactions && rc == 0)
a41c76
-            rc = qemuMonitorTransaction(priv->mon, &bitmapactions);
a41c76
+            ignore_value(qemuMonitorTransaction(priv->mon, &bitmapactions));
a41c76
 
a41c76
         if (rc == 0)
a41c76
             ret = qemuMonitorJobComplete(priv->mon, job->name);
a41c76
-- 
a41c76
2.27.0
a41c76