qcow2: Allow alloc_clusters_noref to return errors
commit2eaa8f633854b623050cf000febe989d144927fe
authorKevin Wolf <kwolf@redhat.com>
Fri, 4 Jun 2010 09:22:39 +0000 (4 11:22 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 15 Jun 2010 07:41:58 +0000 (15 09:41 +0200)
tree0f3c16af19183d9778d81e4b96ed39966213850b
parent018faafdbdd88e6212a83126716091ce155e6ff9
qcow2: Allow alloc_clusters_noref to return errors

Currently it would consider blocks for which get_refcount fails used. However,
it's unlikely that get_refcount would succeed for the next cluster, so it's not
really helpful. Return an error instead.

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