]> git.proxmox.com Git - mirror_qemu.git/commit - block/iscsi.c
block: Add errp to bdrv_new()
authorKevin Wolf <kwolf@redhat.com>
Thu, 17 Apr 2014 11:16:01 +0000 (13:16 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 22 Apr 2014 10:00:20 +0000 (12:00 +0200)
commit98522f63f40adaebc412481e1d2e9170160d4539
tree025ec57320b8fbec0eab0078506e41154833c111
parent5ff679b47d151c4f73be297f96606eaefb6cc4c4
block: Add errp to bdrv_new()

This patch adds an errp parameter to bdrv_new() and updates all its
callers. The next patches will make use of this in order to check for
duplicate IDs. Most of the callers know that their ID is fine, so they
can simply assert that there is no error.

Behaviour doesn't change with this patch yet as bdrv_new() doesn't
actually assign errors to errp.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block.c
block/iscsi.c
block/vvfat.c
blockdev.c
hw/block/xen_disk.c
include/block/block.h
qemu-img.c
qemu-io.c
qemu-nbd.c