From patchwork Tue Feb 5 18:54:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 218323 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 18BBF2C02C6 for ; Wed, 6 Feb 2013 05:57:22 +1100 (EST) Received: from localhost ([::1]:49633 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2nho-0003m8-7u for incoming@patchwork.ozlabs.org; Tue, 05 Feb 2013 13:57:20 -0500 Received: from eggs.gnu.org ([208.118.235.92]:57895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2nhA-0002Sr-Sm for qemu-devel@nongnu.org; Tue, 05 Feb 2013 13:56:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U2nh0-0004Yw-5j for qemu-devel@nongnu.org; Tue, 05 Feb 2013 13:56:40 -0500 Received: from mx1.redhat.com ([209.132.183.28]:33599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2ngz-0004YU-UF for qemu-devel@nongnu.org; Tue, 05 Feb 2013 13:56:30 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r15IuTjF019882 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 5 Feb 2013 13:56:29 -0500 Received: from localhost (ovpn-112-26.ams2.redhat.com [10.36.112.26]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r15IuR74029933; Tue, 5 Feb 2013 13:56:28 -0500 From: Stefan Hajnoczi To: Date: Tue, 5 Feb 2013 19:54:11 +0100 Message-Id: <1360090451-26543-6-git-send-email-stefanha@redhat.com> In-Reply-To: <1360090451-26543-1-git-send-email-stefanha@redhat.com> References: <1360090451-26543-1-git-send-email-stefanha@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 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 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 Reviewed-by: Eric Blake --- block/qcow2-refcount.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c index 3d85e99..eb90a37 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 && (l2_entry & ~511) != next_contiguous_offset) { res->bfi.fragmented_clusters++;