[RFC,V2,1/7] block: Add BlockDriver function prototype to pause and resume deduplication.

Submitted by Benoît Canet on Feb. 6, 2013, 12:32 p.m.

Details

Message ID 1360153946-9617-2-git-send-email-benoit@irqsave.net
State New
Headers show

Commit Message

Benoît Canet Feb. 6, 2013, 12:32 p.m.
---
 include/block/block_int.h |    3 +++
 1 file changed, 3 insertions(+)

Patch hide | download patch | download mbox

diff --git a/include/block/block_int.h b/include/block/block_int.h
index 62c72fc..69fbe8a 100644
--- a/include/block/block_int.h
+++ b/include/block/block_int.h
@@ -205,6 +205,9 @@  struct BlockDriver {
      */
     int (*bdrv_has_zero_init)(BlockDriverState *bs);
 
+    /* to pause and resume deduplication (mainly qcow2) */
+    void (*bdrv_dedup_control)(BlockDriverState *bs, const bool enable);
+
     QLIST_ENTRY(BlockDriver) list;
 };