[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 44/44] block: Add Error parameter to bdrv_app
From: |
Max Reitz |
Subject: |
Re: [Qemu-devel] [PATCH v3 44/44] block: Add Error parameter to bdrv_append() |
Date: |
Tue, 28 Feb 2017 17:22:46 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 |
On 28.02.2017 13:54, Kevin Wolf wrote:
> Aborting on error in bdrv_append() isn't correct. This patch fixes it
> and lets the callers handle failures.
>
> Test case 085 needs a reference output update. This is caused by the
> reversed order of bdrv_set_backing_hd() and change_parent_backing_link()
> in bdrv_append(): When the backing file of the new node is set, the
> parent nodes are still pointing to the old top, so the backing blocker
> is now initialised with the node name rather than the BlockBackend name.
>
> Signed-off-by: Kevin Wolf <address@hidden>
> ---
> block.c | 23 +++++++++++++++++------
> block/mirror.c | 9 ++++++++-
> blockdev.c | 18 +++++++++++++++---
> include/block/block.h | 3 ++-
> tests/qemu-iotests/085.out | 2 +-
> 5 files changed, 43 insertions(+), 12 deletions(-)
Reviewed-by: Max Reitz <address@hidden>
Thanks for leaving me the opportunity to write a patch which removes the
bdrv_unref() from bdrv_append(). :-)
Max
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH v3 38/44] nbd/server: Use real permissions for NBD exports, (continued)
- [Qemu-devel] [PATCH v3 38/44] nbd/server: Use real permissions for NBD exports, Kevin Wolf, 2017/02/28
- [Qemu-devel] [PATCH v3 39/44] tests: Remove FIXME comments, Kevin Wolf, 2017/02/28
- [Qemu-devel] [PATCH v3 41/44] block: Assertions for write permissions, Kevin Wolf, 2017/02/28
- [Qemu-devel] [PATCH v3 40/44] block: Pass BdrvChild to bdrv_aligned_preadv/pwritev and copy-on-read, Kevin Wolf, 2017/02/28
- [Qemu-devel] [PATCH v3 42/44] block: Assertions for resize permission, Kevin Wolf, 2017/02/28
- [Qemu-devel] [PATCH v3 43/44] block: Add Error parameter to bdrv_set_backing_hd(), Kevin Wolf, 2017/02/28
- [Qemu-devel] [PATCH v3 44/44] block: Add Error parameter to bdrv_append(), Kevin Wolf, 2017/02/28
- Re: [Qemu-devel] [PATCH v3 44/44] block: Add Error parameter to bdrv_append(),
Max Reitz <=
- Re: [Qemu-devel] [PATCH v3 00/44] New op blocker system, part 1, Fam Zheng, 2017/02/28