[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 07/19] block: expect errors from bdrv_co_is_a
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-devel] [PATCH v3 07/19] block: expect errors from bdrv_co_is_allocated |
Date: |
Mon, 29 Jul 2013 16:17:52 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
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 failures or
> >> infinite loops.
> >>
> >> Fix the callers to always look for errors.
> >>
> >> Cc: address@hidden
> >> Reviewed-by: Eric Blake <address@hidden>
> >> Signed-off-by: Paolo Bonzini <address@hidden>
> >
> > Good idea, but there seem to be a few more callers that don't handle
> > errors yet. Not sure what your criterion for fixing callers or not was.
> > Did you simply miss the rest?
>
> In general, I didn't bother about callers that didn't handle *pnum = 0
> correctly (for example block-migration.c and commit). But I see now
> that the ones in qemu-io-cmds.c are due to a bad rebase.
Would you mind fixing the already broken ones as well?
> (BTW, I just noticed now that both block-migration.c and commit also run
> outside a coroutine, and thus rely on bdrv_is_allocated creating one).
Ah well, I missed those, too bad. I won't insist on removing the
synchronous path then.
Kevin
[Qemu-devel] [PATCH v3 09/19] block: make bdrv_has_zero_init return false for copy-on-write-images, Paolo Bonzini, 2013/07/25
[Qemu-devel] [PATCH v3 08/19] qemu-img: always probe the input image for allocated sectors, Paolo Bonzini, 2013/07/25
[Qemu-devel] [PATCH v3 10/19] block: introduce bdrv_get_block_status API, Paolo Bonzini, 2013/07/25
[Qemu-devel] [PATCH v3 12/19] block: return get_block_status data and flags for formats, Paolo Bonzini, 2013/07/25
[Qemu-devel] [PATCH v3 11/19] block: define get_block_status return value, Paolo Bonzini, 2013/07/25