--- block/qcow2-dedup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/block/qcow2-dedup.c b/block/qcow2-dedup.c index 31988b6..454a94f 100644 --- a/block/qcow2-dedup.c +++ b/block/qcow2-dedup.c @@ -524,6 +524,7 @@ static int qcow2_count_next_non_dedupable_clusters(BlockDriverState *bs, uint8_t *data, int left_to_process) { + BDRVQcowState *s = bs->opaque; int i; int ret = 0; QCowHashNode *hash_node; @@ -546,6 +547,7 @@ static int qcow2_count_next_non_dedupable_clusters(BlockDriverState *bs, qcow2_build_and_insert_hash_node(bs, &ds->phash.hash); add_hash_to_undedupable_list(bs, ds); + s->dedup_metrics.non_deduplicated_clusters++; } return i; -- 1.7.10.4
- [Qemu-devel] [RFC V2 00/16] QCOW2 deduplication metrics Benoît Canet
- [Qemu-devel] [RFC V2 14/16] qcow2: Add qcow2_dedup_upda... Benoît Canet
- [Qemu-devel] [RFC V2 10/16] qcow2: Count cluster delete... Benoît Canet
- [Qemu-devel] [RFC V2 03/16] qcow2: Add deduplication me... Benoît Canet
- [Qemu-devel] [RFC V2 11/16] qcow2: Count deduplication ... Benoît Canet
- [Qemu-devel] [RFC V2 05/16] qcow2: Collect unaligned wr... Benoît Canet
- [Qemu-devel] [RFC V2 01/16] qcow2: Add qcow2_co_dedup_r... Benoît Canet
- [Qemu-devel] [RFC V2 07/16] qcow2: Collect undeduplicat... Benoît Canet
- [Qemu-devel] [RFC V2 15/16] qcow2: returns deduplicatio... Benoît Canet
- [Qemu-devel] [RFC V2 02/16] qcow2: Enable the deduplica... Benoît Canet
- [Qemu-devel] [RFC V2 06/16] qcow2: Collect deduplicated... Benoît Canet
- [Qemu-devel] [RFC V2 04/16] qcow2: Initialize deduplica... Benoît Canet
- [Qemu-devel] [RFC V2 08/16] qcow2: Count QCowHashNode c... Benoît Canet
- [Qemu-devel] [RFC V2 09/16] qcow2: Count QCowHashNode r... Benoît Canet
- [Qemu-devel] [RFC V2 16/16] qapi: Return virtual block ... Benoît Canet
- [Qemu-devel] [RFC V2 12/16] qapi: Add support for dedup... Benoît Canet
- [Qemu-devel] [RFC V2 13/16] block: Add deduplication me... Benoît Canet