From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:53485) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJLfc-00031R-8e for qemu-devel@nongnu.org; Thu, 27 Oct 2011 04:50:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJLfa-0006Gr-WB for qemu-devel@nongnu.org; Thu, 27 Oct 2011 04:50:40 -0400 Message-ID: <4EA91C16.6050908@redhat.com> Date: Thu, 27 Oct 2011 10:53:42 +0200 From: Kevin Wolf MIME-Version: 1.0 References: <1319658678-18355-1-git-send-email-sunshine@sunshineco.com> In-Reply-To: <1319658678-18355-1-git-send-email-sunshine@sunshineco.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] Teach block/vdi about "discarded" (no longer allocated) blocks List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Sunshine Cc: qemu-trivial@nongnu.org, Stefan Weil , qemu-devel@nongnu.org Am 26.10.2011 21:51, schrieb Eric Sunshine: > An entry in the VDI block map will hold an offset to the actual block if > the block is allocated, or one of two specially-interpreted values if > not allocated. Using VirtualBox terminology, value VDI_IMAGE_BLOCK_FREE > (0xffffffff) represents a never-allocated block (semantically arbitrary > content). VDI_IMAGE_BLOCK_ZERO (0xfffffffe) represents a "discarded" > block (semantically zero-filled). block/vdi knows only about > VDI_IMAGE_BLOCK_FREE. Teach it about VDI_IMAGE_BLOCK_ZERO. > > Signed-off-by: Eric Sunshine Thanks, applied to the block branch. Kevin