Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FYAi0-0000Kv-C4 for qemu-devel@nongnu.org; Mon, 24 Apr 2006 19:43:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FYAhz-0000Js-E8 for qemu-devel@nongnu.org; Mon, 24 Apr 2006 19:43:11 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYAhz-0000Jh-3f for qemu-devel@nongnu.org; Mon, 24 Apr 2006 19:43:11 -0400 Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FYAkJ-0001B6-Fu for qemu-devel@nongnu.org; Mon, 24 Apr 2006 19:45:36 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FYAhk-0002qC-RM for qemu-devel@nongnu.org; Tue, 25 Apr 2006 01:42:56 +0200 Received: from c-24-7-50-23.hsd1.ca.comcast.net ([24.7.50.23]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Apr 2006 01:42:56 +0200 Received: from blp by c-24-7-50-23.hsd1.ca.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Apr 2006 01:42:56 +0200 From: Ben Pfaff Message-ID: <878xpu7d6r.fsf@benpfaff.org> References: <20060424221206.9BFF42946A@mail.bitblocks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: news Subject: [Qemu-devel] Re: patch to avoid space allocation for zero blocks in the qcow format Reply-To: blp@cs.stanford.edu, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Mon, 24 Apr 2006 23:43:12 -0000 To: qemu-devel@nongnu.org Bakul Shah writes: > The below patch avoids allocating space in the qcow image > format when a block of zeroes is being written. No attempt > is made to free up space if a previously written block of > nonzero data is being overwritten with zeroes. This optimization is only possible for base disks (those with no parent). Based on a quick glance at the diff, I am not sure whether this change properly recognizes that. Does it? -- Ben Pfaff email: blp@cs.stanford.edu web: http://benpfaff.org