Received: from eggs.gnu.org ([2001:4830:134:3::10]:55577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzPMF-0002it-V4 for qemu-devel@nongnu.org; Wed, 26 Oct 2016 10:39:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzPMF-0000e8-5G for qemu-devel@nongnu.org; Wed, 26 Oct 2016 10:39:11 -0400 References: <20161025025431.24714-1-mreitz@redhat.com> <20161025025431.24714-2-mreitz@redhat.com> From: Max Reitz Message-ID: Date: Wed, 26 Oct 2016 16:39:02 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="2qiufE2CJ9HwoomjgMbBK4vHNL5Hn8KwH" 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: Eric Blake , 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) --2qiufE2CJ9HwoomjgMbBK4vHNL5Hn8KwH From: Max Reitz To: Eric Blake , 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: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 25.10.2016 20:31, Eric Blake wrote: > 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. >> >> Cc: qemu-stable@nongnu.org >> Signed-off-by: Max Reitz >> --- >> block/curl.c | 11 +++++------ >> 1 file changed, 5 insertions(+), 6 deletions(-) >=20 > Reviewed-by: Eric Blake >=20 > (Can curl technically be used to access single-byte granularity? I > suppose that would be a larger patch, though, to implement the right > callbacks). Yes, it definitely can, and yes, we definitely should implement it at some point. >> + DPRINTF("CURL (AIO): Reading %llu at %zd (%s)\n", >> + (acb->nb_sectors * BDRV_SECTOR_SIZE), start, state->range= ); >=20 > 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 unrelate= d > to this patch. Well, yes, it's all kind of yuck... Thanks for reviewing, though! Max --2qiufE2CJ9HwoomjgMbBK4vHNL5Hn8KwH Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEvBAEBCAAZBQJYEMAGEhxtcmVpdHpAcmVkaGF0LmNvbQAKCRD0B9sAYdXPQPsi B/0ZsEapmdjvAQEE6qxnMANdAbDSQJuuNdqubQ6o+lMk8s1+Aty63MyPiVBOV31J MT0VamilLRkSeds6ujfyhectYRQGikmr7zVjqLy7/5o6n24h0iH765VpmAIE0WhE 3nCg+jPulBRPI0PcHJnmtWJLRaS36iSiZAsEaH92GC0s7sw/wR+FnmJJh1NiMB/v 9sv2/w/tNnBytWQEZy41nlBwvr+wZ3ouvW8mi0+uMXjB/V9frnqg2znqbRI1ei1F 9o86LwyX8NbtDdvlOiOfTGoJrDQfBTGhitE40ZQtDdhTh1//8ipZ41C2z+z4cTSi CkkpLf1dQYJh/yGqyqtAfrng =i+of -----END PGP SIGNATURE----- --2qiufE2CJ9HwoomjgMbBK4vHNL5Hn8KwH--