qemuDomainBlockPivot: Ignore failures of creating active layer bitmap

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>
This commit is contained in:
Peter Krempa 2020-07-16 15:14:40 +02:00
parent 24ac1a7c04
commit 66dc4992fa

View 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);