[Qemu-devel] [PATCH 1/4] block: Move external snapshot image creation in the block drivers.

2013-01-28 Thread Benoît Canet
This patch will allow protocols to implements snapshots as the image creation is now delegated to the block driver. Signed-off-by: Benoit Canet ben...@irqsave.net --- block.c | 42 ++ block/blkdebug.c |2 ++

Re: [Qemu-devel] [PATCH 1/4] block: Move external snapshot image creation in the block drivers.

2013-01-28 Thread Stefan Hajnoczi
On Mon, Jan 28, 2013 at 02:22:15PM +0100, Benoît Canet wrote: diff --git a/block.c b/block.c index 6fa7c90..af22ee8 100644 --- a/block.c +++ b/block.c @@ -4626,3 +4626,45 @@ out: bdrv_delete(bs); } } + +void bdrv_generic_ext_snapshot_img_create(BlockDriverState *bs, +