Patchwork [07/22] qcow2: support compressed clusters in BlockFragInfo

login
register
mail settings
Submitter Kevin Wolf
Date Feb. 22, 2013, 9:23 p.m.
Message ID <1361568231-18198-8-git-send-email-kwolf@redhat.com>
Download mbox | patch
Permalink /patch/222665/
State New
Headers show

Comments

Kevin Wolf - Feb. 22, 2013, 9:23 p.m.
From: Stefan Hajnoczi <stefanha@redhat.com>

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
 block/qcow2-refcount.c | 1 +
 1 file changed, 1 insertion(+)

Patch

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