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

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