qcow2: Allow get_refcount to return errors
authorKevin Wolf <kwolf@redhat.com>
Fri, 4 Jun 2010 09:16:11 +0000 (11:16 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 15 Jun 2010 07:41:58 +0000 (09:41 +0200)
commited093e12f32090511da41cf7bfe53796b0f3efcb
treefcface7acd852fd626a475aa24f2bff3c7f8d92a
parentfa74ac016697d1061b2eb8404548014e893aa59b
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