OSDN Git Service

block: Add functions for inheriting a BBRS
authorMax Reitz <mreitz@redhat.com>
Mon, 26 Oct 2015 20:39:07 +0000 (21:39 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 11 Nov 2015 15:22:46 +0000 (16:22 +0100)
commit38cb18f5b71428fb8a3e3759ac8fa21ac70cb1b5
tree015d4c3447befe908c51ba2d5794e3c0ecb269aa
parentc69a4dd89989b483b06d765b13e41594c78d32b9
block: Add functions for inheriting a BBRS

In order to open a BDS which inherits a BB's root state,
blk_get_open_flags_from_root_state() is used to inquire the flags to be
passed to bdrv_open(), and blk_apply_root_state() is used to apply the
remaining state after the BDS has been opened.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/block-backend.c
include/sysemu/block-backend.h