blockdev: Separate BB name management
commite5e785500bf1ca286f9069bc13f3ed8cb2e9eb8a
authorMax Reitz <mreitz@redhat.com>
Wed, 16 Mar 2016 18:54:37 +0000 (16 19:54 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 17 Mar 2016 14:47:56 +0000 (17 15:47 +0100)
tree2f057a2d398d1bc1f7bad01e211695a8f59e4f87
parent2cf22d6a1a542b7775ba6945a0423b41325db45f
blockdev: Separate BB name management

Introduce separate functions (monitor_add_blk() and
monitor_remove_blk()) which set or unset a BB name. Since the name is
equivalent to the monitor's reference to a BB, adding a name the same as
declaring the BB to be monitor-owned and removing it revokes this
status, hence the function names.

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