From patchwork Wed Jan 16 15:48:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [RFC, V5, 51/62] block: Add BlockDriver function prototype to pause and resume deduplication. From: =?utf-8?q?Beno=C3=AEt_Canet?= X-Patchwork-Id: 212887 Message-Id: <1358351321-4891-52-git-send-email-benoit@irqsave.net> To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Beno=C3=AEt=20Canet?= , stefanha@redhat.com Date: Wed, 16 Jan 2013 16:48:30 +0100 --- include/block/block_int.h | 4 ++++ 1 file changed, 4 insertions(+) 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; };