From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmJJi-0000Ub-GR for qemu-devel@nongnu.org; Thu, 06 Nov 2014 04:25:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XmJJc-00011g-Ch for qemu-devel@nongnu.org; Thu, 06 Nov 2014 04:25:22 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmJJc-00011c-67 for qemu-devel@nongnu.org; Thu, 06 Nov 2014 04:25:16 -0500 Message-ID: <545B3E6F.9090601@redhat.com> Date: Thu, 06 Nov 2014 10:25:03 +0100 From: Max Reitz MIME-Version: 1.0 References: <1414491152-26952-1-git-send-email-mreitz@redhat.com> In-Reply-To: <1414491152-26952-1-git-send-email-mreitz@redhat.com> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit 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: qemu-devel@nongnu.org Cc: Kevin Wolf , Stefan Weil , Jeff Cody , Peter Lieven , Stefan Hajnoczi On 2014-10-28 at 11:12, 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). > > 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. > > 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 :-) Ping