« Previous | Next » 

Revision 6ebdcee2

ID6ebdcee2d8e9e4b41ffe4e49039927550848b926

Added by Jeff Cody over 11 years ago

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 <>
Reviewed-by: Eric Blake <>
Signed-off-by: Kevin Wolf <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences