From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:50860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REcYO-0006D2-Mh for qemu-devel@nongnu.org; Fri, 14 Oct 2011 03:51:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REcYN-0007WM-Mu for qemu-devel@nongnu.org; Fri, 14 Oct 2011 03:51:40 -0400 Received: from verein.lst.de ([213.95.11.211]:50346 helo=newverein.lst.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REcYN-0007WI-IP for qemu-devel@nongnu.org; Fri, 14 Oct 2011 03:51:39 -0400 Date: Fri, 14 Oct 2011 09:51:38 +0200 From: Christoph Hellwig Message-ID: <20111014075138.GA23272@lst.de> References: <1318513779-8555-1-git-send-email-kwolf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1318513779-8555-1-git-send-email-kwolf@redhat.com> Subject: Re: [Qemu-devel] [PATCH] linux-aio: Allow reads beyond the end of growable images List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: stefanha@gmail.com, qemu-devel@nongnu.org On Thu, Oct 13, 2011 at 03:49:39PM +0200, Kevin Wolf wrote: > This is the linux-aio version of commits 22afa7b5 (raw-posix, synchronous) and > ba1d1afd (posix-aio-compat). Reads now produce zeros after the end of file > instead of failing or resulting in short reads, making linux-aio compatible > with the behaviour of synchronous raw-posix requests and posix-aio-compat. > > The problem can be reproduced like this: > > dd if=/dev/zero of=/tmp/test.raw bs=1 count=1234 > ./qemu-io -k -n -g -c 'read -p 1024 512' /tmp/test.raw Can you send a patch doing this for qemu-iotests?