| Submitter | Stefan Hajnoczi |
|---|---|
| Date | Feb. 5, 2013, 6:54 p.m. |
| Message ID | <1360090451-26543-6-git-send-email-stefanha@redhat.com> |
| Download | mbox | patch |
| Permalink | /patch/218323/ |
| State | New |
| Headers | show |
Comments
On 02/05/2013 11:54 AM, Stefan Hajnoczi wrote: > Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> > --- > 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++; Reviewed-by: Eric Blake <eblake@redhat.com>
Patch
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++;
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> --- block/qcow2-refcount.c | 1 + 1 file changed, 1 insertion(+)