qcow2: Allow get_refcount to return errors
commit018faafdbdd88e6212a83126716091ce155e6ff9
authorKevin Wolf <kwolf@redhat.com>
Fri, 4 Jun 2010 09:16:11 +0000 (4 11:16 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 15 Jun 2010 07:41:58 +0000 (15 09:41 +0200)
treefcface7acd852fd626a475aa24f2bff3c7f8d92a
parent6c6ea921ff9eebec514635aa7af893adf893fb12
qcow2: Allow get_refcount to return errors

get_refcount might need to load a refcount block from disk, so errors may
happen. Return the error code instead of assuming a refcount of 1 and change
the callers to respect error return values.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-refcount.c