]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuDomainBlockPivot: Ignore failures of creating active layer bitmap
authorPeter Krempa <pkrempa@redhat.com>
Thu, 16 Jul 2020 13:14:40 +0000 (15:14 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 21 Jul 2020 07:52:59 +0000 (09:52 +0200)
Ignore errors from creating "libvirt-tmp-activewrite" bitmap. This
prevents failures of finishing blockjobs if the bitmap already exists.

Note that if the bitmap exists, the worst case that can happen is that
more bits are marked as dirty in the resulting merge.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
src/qemu/qemu_driver.c

index 8de4fba1d3e7c5d780232a2e85ed84ce85e99943..e3927cd431db0cf11a345d106b9cdccb9a125c53 100644 (file)
@@ -17415,7 +17415,7 @@ qemuDomainBlockPivot(virQEMUDriverPtr driver,
         }
 
         if (bitmapactions && rc == 0)
-            rc = qemuMonitorTransaction(priv->mon, &bitmapactions);
+            ignore_value(qemuMonitorTransaction(priv->mon, &bitmapactions));
 
         if (rc == 0)
             ret = qemuMonitorJobComplete(priv->mon, job->name);