qcow2: Add errp to rebuild_refcount_structure()
commit0423f75351ab83b844a31349218b0eadd830e07a
authorHanna Reitz <hreitz@redhat.com>
Tue, 5 Apr 2022 13:46:52 +0000 (5 15:46 +0200)
committerHanna Reitz <hreitz@redhat.com>
Wed, 20 Apr 2022 10:09:17 +0000 (20 12:09 +0200)
treea1a6b2c735135e967f8e705ce5113d66c72075b2
parent9ffd6d646d1d5ee9087a8cbf0b7d2f96c5656162
qcow2: Add errp to rebuild_refcount_structure()

Instead of fprint()-ing error messages in rebuild_refcount_structure()
and its rebuild_refcounts_write_refblocks() helper, pass them through an
Error object to qcow2_check_refcounts() (which will then print it).

Suggested-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20220405134652.19278-4-hreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block/qcow2-refcount.c