Received: from eggs.gnu.org ([2001:4830:134:3::10]:39259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bz6Vz-00035X-02 for qemu-devel@nongnu.org; Tue, 25 Oct 2016 14:32:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bz6Vy-0006f3-4H for qemu-devel@nongnu.org; Tue, 25 Oct 2016 14:31:59 -0400 References: <20161025025431.24714-1-mreitz@redhat.com> <20161025025431.24714-2-mreitz@redhat.com> From: Eric Blake Message-ID: Date: Tue, 25 Oct 2016 13:31:50 -0500 MIME-Version: 1.0 In-Reply-To: <20161025025431.24714-2-mreitz@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="7RkFlD4sTDFDS3XIlxITmS02SRvoT92ug" Subject: Re: [Qemu-devel] [PATCH 1/4] block/curl: Use BDRV_SECTOR_SIZE List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , qemu-block@nongnu.org Cc: Kevin Wolf , Jeff Cody , qemu-stable@nongnu.org, qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --7RkFlD4sTDFDS3XIlxITmS02SRvoT92ug From: Eric Blake To: Max Reitz , qemu-block@nongnu.org Cc: Kevin Wolf , Jeff Cody , qemu-stable@nongnu.org, qemu-devel@nongnu.org Message-ID: Subject: Re: [Qemu-devel] [PATCH 1/4] block/curl: Use BDRV_SECTOR_SIZE References: <20161025025431.24714-1-mreitz@redhat.com> <20161025025431.24714-2-mreitz@redhat.com> In-Reply-To: <20161025025431.24714-2-mreitz@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 10/24/2016 09:54 PM, Max Reitz wrote: > Currently, curl defines its own constant SECTOR_SIZE. There is no > advantage over using the global BDRV_SECTOR_SIZE, so drop it. >=20 > Cc: qemu-stable@nongnu.org > Signed-off-by: Max Reitz > --- > block/curl.c | 11 +++++------ > 1 file changed, 5 insertions(+), 6 deletions(-) Reviewed-by: Eric Blake (Can curl technically be used to access single-byte granularity? I suppose that would be a larger patch, though, to implement the right callbacks). > + DPRINTF("CURL (AIO): Reading %llu at %zd (%s)\n", > + (acb->nb_sectors * BDRV_SECTOR_SIZE), start, state->range)= ; Eww. start is seriously limited to size_t rather than off_t? Doesn't that cripple us to a maximum of 4G files on 32-bit hosts? But unrelated to this patch. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --7RkFlD4sTDFDS3XIlxITmS02SRvoT92ug Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJYD6UWAAoJEKeha0olJ0Nq0tcH/imCsgFb4GXsPWYI/7kgMg57 YUDbpx1ZzYO6Ntt6XEOP4wRQT17Mb4tlMDBugc5cnOPS7MGKIJXJ5+yQRlQ/38BK zbeUSGbNu4iwsWnIBKJrO/+Er9z4SIQi9w+SfpDE5MO3oR1TXdZ3qBbngfx5QDt/ BcAfOgIkjIuJOzSUyJ8tFIuzEpEIFfQ1/ZVXwQ9AgXCBjy/9pgKDYUsL8LShLzW3 MQQ4PSb0KLzWTjlO5uDIbUlYYhwXh3j6IodR5Yxokkcys4v6hNAwujqiwwRPNmhw Q83CFuYibuvZEfNc7wLeZs3gk/sl86uaFo+7dMChOkunVB+Lyq44HJg/ol62eZE= =Uvuj -----END PGP SIGNATURE----- --7RkFlD4sTDFDS3XIlxITmS02SRvoT92ug--