qcow2: Return real error code in load_refcount_block
commite14e8ba5d059687bf276077da997c3ecfb5eab86
authorKevin Wolf <kwolf@redhat.com>
Fri, 4 Jun 2010 09:27:08 +0000 (4 11:27 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 15 Jun 2010 07:41:58 +0000 (15 09:41 +0200)
tree87f97be10c71622bbc141df44ba7a6935982b898
parent2eaa8f633854b623050cf000febe989d144927fe
qcow2: Return real error code in load_refcount_block

This fixes load_refcount_block which completely ignored the return value of
write_refcount_block and always returned -EIO for bdrv_pwrite failure.

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