]> git.proxmox.com Git - qemu.git/commit - block.c
block: expect errors from bdrv_co_is_allocated
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 4 Sep 2013 17:00:25 +0000 (19:00 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 6 Sep 2013 13:25:09 +0000 (15:25 +0200)
commitd663640c04f2aab810915c556390211d75457704
treee255e24307c7889d516fc74c0416b6084c4d90f8
parent4f5786376e41980e78af45a123c56ebdc5295099
block: expect errors from bdrv_co_is_allocated

Some bdrv_is_allocated callers do not expect errors, but the fallback
in qcow2.c might make other callers trip on assertion failures or
infinite loops.

Fix the callers to always look for errors.

Cc: qemu-stable@nongnu.org
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block.c
block/cow.c
block/qcow2.c
block/stream.c
qemu-img.c
qemu-io-cmds.c