block: Add error parameter to blk_insert_bs()
commitd7086422b1c1e75e320519cfe26176db6ec97a37
authorKevin Wolf <kwolf@redhat.com>
Fri, 13 Jan 2017 18:02:32 +0000 (13 19:02 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 28 Feb 2017 19:40:36 +0000 (28 20:40 +0100)
tree5b8cc8a489ee05f6432288590f1b621bccfa39c4
parent6d0eb64d5c6d57017c52a4f36ccae1db79215ee1
block: Add error parameter to blk_insert_bs()

Now that blk_insert_bs() requests the BlockBackend permissions for the
node it attaches to, it can fail. Instead of aborting, pass the errors
to the callers.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Acked-by: Fam Zheng <famz@redhat.com>
14 files changed:
block.c
block/backup.c
block/block-backend.c
block/commit.c
block/mirror.c
block/qcow2.c
blockdev.c
blockjob.c
hmp.c
hw/core/qdev-properties-system.c
include/sysemu/block-backend.h
migration/block.c
nbd/server.c
tests/test-blockjob.c