]> git.proxmox.com Git - mirror_qemu.git/commit
block: add live block commit functionality
authorJeff Cody <jcody@redhat.com>
Thu, 27 Sep 2012 17:29:13 +0000 (13:29 -0400)
committerKevin Wolf <kwolf@redhat.com>
Fri, 28 Sep 2012 16:23:12 +0000 (18:23 +0200)
commit747ff602636fd83daae7ee4b1dd6e8d257a89fea
treef11ef05dd801243c5afc345209d12772a2789609
parent6ebdcee2d8e9e4b41ffe4e49039927550848b926
block: add live block commit functionality

This adds the live commit coroutine.  This iteration focuses on the
commit only below the active layer, and not the active layer itself.

The behaviour is similar to block streaming; the sectors are walked
through, and anything that exists above 'base' is committed back down
into base.  At the end, intermediate images are deleted, and the
chain stitched together.  Images are restored to their original open
flags upon completion.

Signed-off-by: Jeff Cody <jcody@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/Makefile.objs
block/commit.c [new file with mode: 0644]
block_int.h
trace-events