--- block/qcow2.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/block/qcow2.c b/block/qcow2.c index 753fce0..e442268 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -1868,6 +1868,10 @@ static int qcow2_get_info(BlockDriverState *bs, BlockDriverInfo *bdi) BDRVQcowState *s = bs->opaque; bdi->cluster_size = s->cluster_size; bdi->vm_state_offset = qcow2_vm_state_offset(s); + bdi->has_dedup = s->has_dedup; + bdi->dedup_running = s->dedup_status == QCOW_DEDUP_STARTED; + qcow2_dedup_update_metrics(bs); + memcpy(&bdi->dedup_metrics, &s->dedup_metrics, sizeof(bdi->dedup_metrics)); return 0; } -- 1.7.10.4
- [Qemu-devel] [RFC V5 06/62] qcow2: Add qcow2_dedup and relat... Benoît Canet
- [Qemu-devel] [RFC V5 08/62] qcow2: Implement qcow2_compute_c... Benoît Canet
- [Qemu-devel] [RFC V5 19/62] qcow2: Add a deduplication boole... Benoît Canet
- [Qemu-devel] [RFC V5 11/62] qcow2: Makes qcow2_alloc_cluster... Benoît Canet
- [Qemu-devel] [RFC V5 18/62] block: Add qemu-img dedup create... Benoît Canet
- [Qemu-devel] [RFC V5 33/62] qemu-iotests: Filter dedup=on/of... Benoît Canet
- [Qemu-devel] [RFC V5 32/62] qcow: Set large dedup hash block... Benoît Canet
- [Qemu-devel] [RFC V5 45/62] qcow2: Count deduplication refco... Benoît Canet
- [Qemu-devel] [RFC V5 34/62] qcow2: Add qcow2_dedup_init and ... Benoît Canet
- [Qemu-devel] [RFC V5 49/62] qcow2: returns deduplication met... Benoît Canet
- [Qemu-devel] [RFC V5 47/62] block: Add deduplication metrics... Benoît Canet
- [Qemu-devel] [RFC V5 46/62] qapi: Add support for deduplicat... Benoît Canet
- [Qemu-devel] [RFC V5 61/62] qmp: Add block-pause-dedup. Benoît Canet
- [Qemu-devel] [RFC V5 52/62] qcow2: Add code to deduplicate c... Benoît Canet
- [Qemu-devel] [RFC V5 54/62] block: Add bdrv_is_dedup_running... Benoît Canet
- Re: [Qemu-devel] [RFC V5 00/62] QCOW2 deduplication Eric Blake
- Re: [Qemu-devel] [RFC V5 00/62] QCOW2 deduplication Benoît Canet
- [Qemu-devel] [RFC V5 41/62] qcow2: Collect undeduplicated cl... Benoît Canet
- [Qemu-devel] [RFC V5 03/62] qcow2: Add qcow2_dedup_read_miss... Benoît Canet
- [Qemu-devel] [RFC V5 50/62] qapi: Return virtual block devic... Benoît Canet