[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [Qemu-devel] [PATCH 10/10] block: Fix error handling in
From: |
Eric Blake |
Subject: |
Re: [Qemu-block] [Qemu-devel] [PATCH 10/10] block: Fix error handling in bdrv_replace_in_backing_chain() |
Date: |
Mon, 6 Mar 2017 15:22:15 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
On 03/06/2017 10:22 AM, Kevin Wolf wrote:
> When adding an Error parameter, bdrv_replace_in_backing_chain() would
> become nothing more than a wrapper around change_parent_backing_link().
> So make the latter public, renamed as bdrv_replace_node(), and remove
> bdrv_replace_in_backing_chain().
>
> Most of the callers just remove a node from the graph that they just
> inserted, so they can use &error_abort, but completion of a mirror job
> with 'replaces' set can actually fail.
>
> Signed-off-by: Kevin Wolf <address@hidden>
> ---
> block.c | 25 ++++++-------------------
> block/mirror.c | 15 +++++++++------
> blockdev.c | 2 +-
> include/block/block.h | 4 ++--
> include/block/block_int.h | 4 ++--
> 5 files changed, 20 insertions(+), 30 deletions(-)
>
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-block] [PATCH 06/10] block: Factor out should_update_child(), (continued)
- [Qemu-block] [PATCH 06/10] block: Factor out should_update_child(), Kevin Wolf, 2017/03/06
- [Qemu-block] [PATCH 07/10] block: Factor out bdrv_replace_child_noperm(), Kevin Wolf, 2017/03/06
- [Qemu-block] [PATCH 08/10] block: Ignore multiple children in bdrv_check_update_perm(), Kevin Wolf, 2017/03/06
- [Qemu-block] [PATCH 09/10] block: Handle permission errors in change_parent_backing_link(), Kevin Wolf, 2017/03/06
- [Qemu-block] [PATCH 10/10] block: Fix error handling in bdrv_replace_in_backing_chain(), Kevin Wolf, 2017/03/06
- Re: [Qemu-block] [Qemu-devel] [PATCH 10/10] block: Fix error handling in bdrv_replace_in_backing_chain(),
Eric Blake <=
- Re: [Qemu-block] [PATCH 00/10] block: Op blocker fixes, Fam Zheng, 2017/03/07
- Re: [Qemu-block] [PATCH 00/10] block: Op blocker fixes, Kevin Wolf, 2017/03/07