From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MLvc4-0000qX-Mu for qemu-devel@nongnu.org; Wed, 01 Jul 2009 04:56:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MLvbz-0000py-OG for qemu-devel@nongnu.org; Wed, 01 Jul 2009 04:56:19 -0400 Received: from [199.232.76.173] (port=37407 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLvbz-0000pv-Ik for qemu-devel@nongnu.org; Wed, 01 Jul 2009 04:56:15 -0400 Received: from verein.lst.de ([213.95.11.210]:33917) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1MLvbz-0001pV-1S for qemu-devel@nongnu.org; Wed, 01 Jul 2009 04:56:15 -0400 Date: Wed, 1 Jul 2009 10:56:12 +0200 From: Christoph Hellwig Subject: Re: [Qemu-devel] [PATCH] block-raw: Allow pread beyond the end of growable images Message-ID: <20090701085612.GA3564@lst.de> References: <1246038684-3702-1-git-send-email-kwolf@redhat.com> <20090630180940.GA4205@lst.de> <4A4B1238.8060302@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A4B1238.8060302@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: Christoph Hellwig , qemu-devel@nongnu.org On Wed, Jul 01, 2009 at 09:37:28AM +0200, Kevin Wolf wrote: > If you feel like posting a better patch, go ahead. I'm feeling that it's > going to be a whole lot uglier in bdrv_pwrite, but that might prove > wrong. And after all it is a problem with raw and not with the generic > block code - qcow2 for example was already reading zeros. > > For the time being, this patch fixes a bug and should stay. So the only use case is a doing a savevm on a qcow2 device with a raw-posix backing dev? What happens with nbd backing dev or a raw backing dev on win32? OR (not sure we'll actually support that) another image format backing dev?