Patchwork [v2,5/5] qcow2: support compressed clusters in BlockFragInfo

login
register
mail settings
Submitter Stefan Hajnoczi
Date Feb. 6, 2013, 10:58 a.m.
Message ID <1360148318-26988-6-git-send-email-stefanha@redhat.com>
Download mbox | patch
Permalink /patch/218551/
State New
Headers show

Comments

Stefan Hajnoczi - Feb. 6, 2013, 10:58 a.m.
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 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++;