From patchwork Wed Feb 6 10:58:38 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 218551 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 7A8C82C0296 for ; Wed, 6 Feb 2013 22:05:28 +1100 (EST) Received: from localhost ([::1]:60688 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U32og-0000sG-Ik for incoming@patchwork.ozlabs.org; Wed, 06 Feb 2013 06:05:26 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U32ip-0006Ui-EK for qemu-devel@nongnu.org; Wed, 06 Feb 2013 06:00:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U32iM-0002lV-DU for qemu-devel@nongnu.org; Wed, 06 Feb 2013 05:59:23 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54495) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U32iM-0002kt-48 for qemu-devel@nongnu.org; Wed, 06 Feb 2013 05:58:54 -0500 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r16AwrxA013436 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 6 Feb 2013 05:58:53 -0500 Received: from localhost (ovpn-112-20.ams2.redhat.com [10.36.112.20]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r16AwqOp014593; Wed, 6 Feb 2013 05:58:52 -0500 From: Stefan Hajnoczi To: Date: Wed, 6 Feb 2013 11:58:38 +0100 Message-Id: <1360148318-26988-6-git-send-email-stefanha@redhat.com> In-Reply-To: <1360148318-26988-1-git-send-email-stefanha@redhat.com> References: <1360148318-26988-1-git-send-email-stefanha@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Kevin Wolf , fsimonce@redhat.com, Stefan Hajnoczi , crobinso@redhat.com Subject: [Qemu-devel] [PATCH v2 5/5] qcow2: support compressed clusters in BlockFragInfo X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Stefan Hajnoczi --- block/qcow2-refcount.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c index 73690f8..aca7ea8 100644 --- a/block/qcow2-refcount.c +++ b/block/qcow2-refcount.c @@ -968,6 +968,7 @@ static int check_refcounts_l2(BlockDriverState *bs, BdrvCheckResult *res, if (flags & CHECK_FRAG_INFO) { res->bfi.allocated_clusters++; + res->bfi.compressed_clusters++; if (next_contiguous_offset && sector_offset != next_contiguous_offset) { res->bfi.fragmented_clusters++;