]> git.proxmox.com Git - mirror_qemu.git/commitdiff
qcow2: support compressed clusters in BlockFragInfo
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 7 Feb 2013 16:15:05 +0000 (17:15 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 22 Feb 2013 20:21:09 +0000 (21:21 +0100)
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/qcow2-refcount.c

index 771b7b28509d11c0b4ae7117a93f93d0be6701f7..55543edf77b7cc8c7bcc3df862b64722e5f5622c 100644 (file)
@@ -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