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

login
register
mail settings
Submitter Benoît Canet
Date Feb. 6, 2013, 12:32 p.m.
Message ID <1360153946-9617-2-git-send-email-benoit@irqsave.net>
Download mbox | patch
Permalink /patch/218752/
State New
Headers show

Comments

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

Patch

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;
 };