Re: [Qemu-block] [PATCH v8 01/15] block: Add blk_remove_bs()

2015-10-27 Thread Alberto Garcia
On Mon 26 Oct 2015 09:39:05 PM CET, Max Reitz wrote: > +void blk_remove_bs(BlockBackend *blk) > +{ > +blk_update_root_state(blk); > + > +blk->bs->blk = NULL; > +bdrv_unref(blk->bs); > +blk->bs = NULL; > +} I cannot think of any example out of the blue but I wonder if removing the

[Qemu-block] [PATCH v8 01/15] block: Add blk_remove_bs()

2015-10-26 Thread Max Reitz
This function removes the BlockDriverState associated with the given BlockBackend from that BB and sets the BDS pointer in the BB to NULL. Signed-off-by: Max Reitz --- block/block-backend.c | 12 include/sysemu/block-backend.h | 1 + 2 files changed, 13 insertions(+) diff