From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:37908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlNqf-0002Yb-1y for qemu-devel@nongnu.org; Wed, 19 Dec 2012 12:54:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TlNqd-0004Tf-Ec for qemu-devel@nongnu.org; Wed, 19 Dec 2012 12:54:28 -0500 Received: from qmta08.emeryville.ca.mail.comcast.net ([76.96.30.80]:47475) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlNqd-0004TL-51 for qemu-devel@nongnu.org; Wed, 19 Dec 2012 12:54:27 -0500 Message-ID: <50D1FF4A.4030705@redhat.com> Date: Wed, 19 Dec 2012 10:54:18 -0700 From: Eric Blake MIME-Version: 1.0 References: <1355751593-31535-1-git-send-email-mrezanin@redhat.com> <1355751593-31535-2-git-send-email-mrezanin@redhat.com> In-Reply-To: <1355751593-31535-2-git-send-email-mrezanin@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig88D13464D6F7ED1FC28F5572" Subject: Re: [Qemu-devel] [PATCH v7 1/4] block: Add synchronous wrapper for bdrv_co_is_allocated_above List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: mrezanin@redhat.com Cc: kwolf@redhat.com, pbonzini@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig88D13464D6F7ED1FC28F5572 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 12/17/2012 06:39 AM, mrezanin@redhat.com wrote: > From: Miroslav Rezanina >=20 > 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. >=20 > This patch add missing synchronous wrapper. s/add/adds the/ >=20 > Signed-off-by: Miroslav Rezanina > --- > block.c | 39 +++++++++++++++++++++++++++++++++++++++ > block.h | 2 ++ > 2 files changed, 41 insertions(+) >=20 > 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 *b= ase, > + int64_t sector_num, int nb_sectors, int *pnum) Indentation looks off. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enig88D13464D6F7ED1FC28F5572 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with undefined - http://www.enigmail.net/ iQEcBAEBCAAGBQJQ0f9KAAoJEKeha0olJ0NqcioH/0xaNa0snDVMqYNDwjXcm8Pw V9qKA8OG9r3AaBrBQVpRiUCAVnMepmuUXnTDIG6CcmRtTmqBaLKH2H10VUtYzgU8 9c+X3baNxEPU7089ASRqenJTWG2DGVOxbQqV/9LPapRxIbojKLQCVkUkAWokrUSQ mW198oSS5XSgRgNcmQ8bGFW/Zt62/juYwjwQjezg83U2lMZ/ObNvB3um6rTQBFoh 99pK4yHODTKpl29ZA5eAURChUnsaPggQvyLs8KGPY+WMc+NK3DTmpxkvjMR82dft 70x6ocj7Zk8lrojwO4josASPoB7W+kXJFnbs10BxM+bHoQleR9EejQMBzUrBT+I= =DvS6 -----END PGP SIGNATURE----- --------------enig88D13464D6F7ED1FC28F5572--