]> git.proxmox.com Git - mirror_qemu.git/commit
block: Add error parameter to blk_insert_bs()
authorKevin Wolf <kwolf@redhat.com>
Fri, 13 Jan 2017 18:02:32 +0000 (19:02 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 28 Feb 2017 19:40:36 +0000 (20:40 +0100)
commitd7086422b1c1e75e320519cfe26176db6ec97a37
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