[RFC,V5,51/62] block: Add BlockDriver function prototype to pause and resume deduplication.

Submitted by Benoît Canet on Jan. 16, 2013, 3:48 p.m.

Details

Message ID 1358351321-4891-52-git-send-email-benoit@irqsave.net
State New
Headers show

Commit Message

Benoît Canet Jan. 16, 2013, 3:48 p.m.
---
 include/block/block_int.h |    4 ++++
 1 file changed, 4 insertions(+)

Patch hide | download patch | download mbox

diff --git a/include/block/block_int.h b/include/block/block_int.h
index b7ed3e6..bb35df9 100644
--- a/include/block/block_int.h
+++ b/include/block/block_int.h
@@ -203,6 +203,10 @@  struct BlockDriver {
      */
     int (*bdrv_has_zero_init)(BlockDriverState *bs);
 
+    /* to pause and resume deduplication (mainly qcow2) */
+    void (*bdrv_resume_dedup)(BlockDriverState *bs);
+    void (*bdrv_pause_dedup)(BlockDriverState *bs);
+
     QLIST_ENTRY(BlockDriver) list;
 };