block/qcow2-bitmap: return status from qcow2_store_persistent_dirty_bitmaps
commit526e31de993431569ad3b8bdf461ef26d03c404d
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Tue, 2 Feb 2021 12:49:52 +0000 (2 15:49 +0300)
committerEric Blake <eblake@redhat.com>
Mon, 8 Mar 2021 22:03:21 +0000 (8 16:03 -0600)
tree358d7c191a3ef9e067e65812ffa2ab27d2b7e432
parent0c1e9d2a9a3b6dd5ce74092019882fbce691d081
block/qcow2-bitmap: return status from qcow2_store_persistent_dirty_bitmaps

It's better to return status together with setting errp. It makes
possible to avoid error propagation.

While being here, put ERRP_GUARD() to fix error_prepend(errp, ...)
usage inside qcow2_store_persistent_dirty_bitmaps() (see the comment
above ERRP_GUARD() definition in include/qapi/error.h)

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Message-Id: <20210202124956.63146-11-vsementsov@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
block/qcow2-bitmap.c
block/qcow2.h