Received: from eggs.gnu.org ([2001:4830:134:3::10]:34929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmMlz-0007EK-No for qemu-devel@nongnu.org; Thu, 06 Nov 2014 08:06:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XmMlt-0001Wg-Ie for qemu-devel@nongnu.org; Thu, 06 Nov 2014 08:06:47 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49394) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmMlt-0001V5-BE for qemu-devel@nongnu.org; Thu, 06 Nov 2014 08:06:41 -0500 Date: Thu, 6 Nov 2014 13:06:32 +0000 From: Stefan Hajnoczi Message-ID: <20141106130632.GE12646@stefanha-thinkpad.redhat.com> References: <1414491152-26952-1-git-send-email-mreitz@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="idY8LE8SD6/8DnRI" Content-Disposition: inline In-Reply-To: <1414491152-26952-1-git-send-email-mreitz@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2] block/vdi: Limit maximum size even futher List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: Kevin Wolf , Stefan Weil , Jeff Cody , Peter Lieven , qemu-devel@nongnu.org --idY8LE8SD6/8DnRI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 28, 2014 at 11:12:32AM +0100, Max Reitz wrote: > The block layer read and write functions do not like requests which are > bigger than INT_MAX bytes. Since the VDI bmap is read and written in a > single operation, its size is therefore limited accordingly. This > reduces the maximum VDI image size supported by QEMU to half of what it > currently is (down to approximately 512 TB). >=20 > The VDI test 084 has to be adapted accordingly. Actually, one could > clearly see that it was broken from the "Could not open > 'TEST_DIR/t.IMGFMT': Invalid argument" line for an image which was > supposed to work just fine. >=20 > Signed-off-by: Max Reitz > --- > v2: > - Reducing the size to just under 512 TB wasn't enough because the bmap > size is rounded up on sector boundaries; fixed (thanks for testing, > Peter) > - Finally a patch regarding this problem that I tested myself :-) > --- > block/vdi.c | 14 ++++++++++++-- > tests/qemu-iotests/084 | 14 +++++++------- > tests/qemu-iotests/084.out | 13 ++++++++----- > 3 files changed, 27 insertions(+), 14 deletions(-) Reviewed-by: Stefan Hajnoczi --idY8LE8SD6/8DnRI Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUW3JYAAoJEJykq7OBq3PIga8H/iNrJCJXqGXzS1lJB+MJYY00 vW/fpDUk8lxq/RSFEO84mhSjKxy6TAmHnhxY7pz5vcwlCDDEqPvk/NkhrebEYh7s lFzrAjxlzBpBbFeDCCVRZi2yPfGmPQUOLCTdAmW9VnX51zn9Go72UPTbw102toRs wPAXZ7f+AoFtO0oVm8HGDi54Py7VrvDtq68VZz/wT9AA0e15V89angdCaffeU9eK gywwwrHsLDMddo4HPttsNErmYa6+xt2Fn1DW2Ogzbem8fr4QCc9hWRRjJsV0Int7 3jSNwstPuZPK1rbbX7EmU8gqSczAujsLJNMgq9+YgJUXptoziHhhSqvdgFEL7jA= =2Pom -----END PGP SIGNATURE----- --idY8LE8SD6/8DnRI--