[Qemu-devel] [PATCH v2 06/17] block: expect errors from bdrv_co_is_allocated

2013-07-16 Thread Paolo Bonzini
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-sta...@nongnu.org Signed-off-by: Paolo Bonzini --- v1->v2: modify error message, add

Re: [Qemu-devel] [PATCH v2 06/17] block: expect errors from bdrv_co_is_allocated

2013-07-19 Thread Eric Blake
On 07/16/2013 10:29 AM, Paolo Bonzini wrote: > 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-sta...@nongnu.org > Signed-off-by: