Re: [Qemu-devel] [PATCH v3 07/19] block: expect errors from bdrv_co_is_allocated

2013-07-29 Thread Kevin Wolf
Am 29.07.2013 um 16:03 hat Paolo Bonzini geschrieben: > Il 29/07/2013 15:43, Kevin Wolf ha scritto: > > Am 25.07.2013 um 16:23 hat Paolo Bonzini geschrieben: > >> Some bdrv_is_allocated callers do not expect errors, but the fallback > >> in qcow2.c might make other callers trip on assertion failure

Re: [Qemu-devel] [PATCH v3 07/19] block: expect errors from bdrv_co_is_allocated

2013-07-29 Thread Paolo Bonzini
Il 29/07/2013 15:43, Kevin Wolf ha scritto: > Am 25.07.2013 um 16:23 hat Paolo Bonzini geschrieben: >> 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 f

Re: [Qemu-devel] [PATCH v3 07/19] block: expect errors from bdrv_co_is_allocated

2013-07-29 Thread Kevin Wolf
Am 25.07.2013 um 16:23 hat Paolo Bonzini geschrieben: > 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 > Revie

[Qemu-devel] [PATCH v3 07/19] block: expect errors from bdrv_co_is_allocated

2013-07-25 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 Reviewed-by: Eric Blake Signed-off-by: Paolo Bonzini --- block/qcow2.c