From patchwork Thu Feb 7 16:15:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 218945 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 4CD702C008E for ; Fri, 8 Feb 2013 03:16:06 +1100 (EST) Received: from localhost ([::1]:38324 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3U8q-0007l2-AV for incoming@patchwork.ozlabs.org; Thu, 07 Feb 2013 11:16:04 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46718) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3U8R-0007ja-Em for qemu-devel@nongnu.org; Thu, 07 Feb 2013 11:15:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U3U8G-0001Lg-6y for qemu-devel@nongnu.org; Thu, 07 Feb 2013 11:15:39 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34727) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3U8G-0001Lc-0B for qemu-devel@nongnu.org; Thu, 07 Feb 2013 11:15:28 -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 r17GFRjr003685 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 7 Feb 2013 11:15:27 -0500 Received: from localhost (ovpn-112-34.ams2.redhat.com [10.36.112.34]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r17GFQUw012614; Thu, 7 Feb 2013 11:15:26 -0500 From: Stefan Hajnoczi To: Date: Thu, 7 Feb 2013 17:15:05 +0100 Message-Id: <1360253705-10400-6-git-send-email-stefanha@redhat.com> In-Reply-To: <1360253705-10400-1-git-send-email-stefanha@redhat.com> References: <1360253705-10400-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 v3 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 771b7b2..55543ed 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++; /* Compressed clusters are fragmented by nature. Since they * take up sub-sector space but we only have sector granularity