]> Git Repo - qemu.git/commit - block.h
block: add support functions for live commit, to find and delete images.
authorJeff Cody <[email protected]>
Thu, 27 Sep 2012 17:29:12 +0000 (13:29 -0400)
committerKevin Wolf <[email protected]>
Fri, 28 Sep 2012 16:22:44 +0000 (18:22 +0200)
commit6ebdcee2d8e9e4b41ffe4e49039927550848b926
treed2ad525e92390b4ce29433f52dfdc8d64ae3e261
parent8d6d89cb63c57569864ecdeb84d3a1c2ebd031cc
block: add support functions for live commit, to find and delete images.

Add bdrv_find_overlay(), and bdrv_drop_intermediate().

bdrv_find_overlay():  given 'bs' and the active (topmost) BDS of an image chain,
                    find the image that is the immediate top of 'bs'

bdrv_drop_intermediate():
                    Given 3 BDS (active, top, base), drop images above
                    base up to and including top, and set base to be the
                    backing file of top's overlay node.

                    E.g., this converts:

                    bottom <- base <- intermediate <- top <- active

                    to

                    bottom <- base <- active

Signed-off-by: Jeff Cody <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block.c
block.h
This page took 0.026279 seconds and 4 git commands to generate.