On 12/17/2012 06:39 AM, mreza...@redhat.com wrote: > From: Miroslav Rezanina <mreza...@redhat.com> > > There's no synchronous wrapper for bdrv_co_is_allocated_above function > so it's not possible to check for sector allocation in image with
s/in image with/in an image with a/ > backing file. > > This patch add missing synchronous wrapper. s/add/adds the/ > > Signed-off-by: Miroslav Rezanina <mreza...@redhat.com> > --- > block.c | 39 +++++++++++++++++++++++++++++++++++++++ > block.h | 2 ++ > 2 files changed, 41 insertions(+) > > diff --git a/block.c b/block.c > index c05875f..24c06ab 100644 > --- a/block.c > +/* > + * Synchronous wrapper around bdrv_co_is_allocated_above(). > + * > + * See bdrv_co_is_allocated_above() for details. > + */ > +int bdrv_is_allocated_above(BlockDriverState *top, BlockDriverState *base, > + int64_t sector_num, int nb_sectors, int *pnum) Indentation looks off. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature