Received: from eggs.gnu.org ([208.118.235.92]:53838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UG55Z-0003Mq-Qa for qemu-devel@nongnu.org; Thu, 14 Mar 2013 06:08:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UG55V-000892-43 for qemu-devel@nongnu.org; Thu, 14 Mar 2013 06:08:45 -0400 Received: from mail-bk0-x22a.google.com ([2a00:1450:4008:c01::22a]:57082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UG51R-0006nV-1t for qemu-devel@nongnu.org; Thu, 14 Mar 2013 06:04:29 -0400 Received: by mail-bk0-f42.google.com with SMTP id jk7so909388bkc.15 for ; Thu, 14 Mar 2013 03:04:28 -0700 (PDT) Date: Thu, 14 Mar 2013 11:04:25 +0100 From: Stefan Hajnoczi Message-ID: <20130314100425.GB12564@stefanha-thinkpad.redhat.com> References: <1363186693-18054-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1363186693-18054-1-git-send-email-pbonzini@redhat.com> Subject: Re: [Qemu-devel] [PATCH] qemu-iotests: add tests for rebasing zero clusters List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: kwolf@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com On Wed, Mar 13, 2013 at 03:58:13PM +0100, Paolo Bonzini wrote: > If zero clusters are erroneously treated as unallocated, "qemu-img rebase" > will copy the backing file's contents onto the cluster. > > The bug existed also in image streaming, but since the root cause was in > qcow2's is_allocated implementation it is enough to test it with qemu-img. > > Signed-off-by: Paolo Bonzini > --- > tests/qemu-iotests/050 | 75 ++++++++++++++++++++++++++++++++++++++++++++++ > tests/qemu-iotests/050.out | 17 +++++++++++ > tests/qemu-iotests/group | 1 + > 3 files changed, 93 insertions(+) > create mode 100755 tests/qemu-iotests/050 > create mode 100644 tests/qemu-iotests/050.out Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan