]> Git Repo - qemu.git/commit
block: return status from bdrv_append and friends
authorVladimir Sementsov-Ogievskiy <[email protected]>
Tue, 2 Feb 2021 12:49:43 +0000 (15:49 +0300)
committerEric Blake <[email protected]>
Fri, 12 Feb 2021 21:36:41 +0000 (15:36 -0600)
commita1e708fcda5eab10c866a7d6a4fad4f80b69ad15
tree96e2c16bf9c770920cb0d74933ae6cb8a01f3fef
parentca4bfec41d56a1154da89b105048b3462361d0f0
block: return status from bdrv_append and friends

The recommended use of qemu error api assumes returning status together
with setting errp and avoid void functions with errp parameter. Let's
improve bdrv_append and some friends to reduce error-propagation
overhead in further patches.

Choose int return status, because bdrv_replace_node_common() has call
to bdrv_check_update_perm(), which reports int status, which seems
correct to propagate.

Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Message-Id: <20210202124956[email protected]>
Reviewed-by: Alberto Garcia <[email protected]>
Signed-off-by: Eric Blake <[email protected]>
block.c
include/block/block.h
This page took 0.024685 seconds and 4 git commands to generate.