[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH 53/54] block: Add Error parameter to bdrv_set_ba
From: |
Max Reitz |
Subject: |
Re: [Qemu-block] [PATCH 53/54] block: Add Error parameter to bdrv_set_backing_hd() |
Date: |
Sat, 25 Feb 2017 16:36:27 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
On 21.02.2017 15:58, Kevin Wolf wrote:
> Not all callers of bdrv_set_backing_hd() know for sure that attaching
> the backing file will be allowed by the permission system. Return the
> error from the function rather than aborting.
>
> Signed-off-by: Kevin Wolf <address@hidden>
> ---
> block.c | 27 ++++++++++++++++++++-------
> block/commit.c | 14 +++++++-------
> block/mirror.c | 16 +++++++++++++++-
> block/stream.c | 9 ++++++++-
> block/vvfat.c | 2 +-
> include/block/block.h | 3 ++-
> 6 files changed, 53 insertions(+), 18 deletions(-)
It's a bit unfortunate that bdrv_set_backing_hd() is not atomic, that
is, that the node will no longer have a backing file if the command
fails. Oh well.
Reviewed-by: Max Reitz <address@hidden>
signature.asc
Description: OpenPGP digital signature
- Re: [Qemu-block] [PATCH 47/54] migration/block: Use real permissions, (continued)
- [Qemu-block] [PATCH 49/54] tests: Remove FIXME comments, Kevin Wolf, 2017/02/21
- [Qemu-block] [PATCH 50/54] block: Pass BdrvChild to bdrv_aligned_preadv/pwritev, Kevin Wolf, 2017/02/21
- [Qemu-block] [PATCH 52/54] block: Assertions for resize permission, Kevin Wolf, 2017/02/21
- [Qemu-block] [PATCH 54/54] block: Add Error parameter to bdrv_append(), Kevin Wolf, 2017/02/21
- [Qemu-block] [PATCH 53/54] block: Add Error parameter to bdrv_set_backing_hd(), Kevin Wolf, 2017/02/21
- Re: [Qemu-block] [PATCH 53/54] block: Add Error parameter to bdrv_set_backing_hd(),
Max Reitz <=
- Re: [Qemu-block] [Qemu-devel] [PATCH 00/54] New op blocker system, part 1, no-reply, 2017/02/21
- Re: [Qemu-block] [PATCH 00/54] New op blocker system, part 1, Kevin Wolf, 2017/02/24