[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH 38/54] backup: Use real permissions in backup bl
From: |
Max Reitz |
Subject: |
Re: [Qemu-block] [PATCH 38/54] backup: Use real permissions in backup block job |
Date: |
Sat, 25 Feb 2017 13:06:07 +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:
> The backup block job doesn't have very complicated requirements: It
> needs to read from the source and write to the target, but it's fine
> with either side being changed. The only restriction is that we can't
> resize the image because the job uses a cached value.
>
> qemu-iotests 055 needs to be changed because it used a target which was
> already attached to a virtio-blk device. The permission system correctly
> forbids this (virtio-blk can't accept another writer with its default
> share-rw=off).
>
> Signed-off-by: Kevin Wolf <address@hidden>
> ---
> block/backup.c | 15 ++++++++++-----
> tests/qemu-iotests/055 | 11 +++++++----
> 2 files changed, 17 insertions(+), 9 deletions(-)
Not sure how much sense it makes to allow other writers on the target
node, but it's not as if the backup block job itself would care:
Reviewed-by: Max Reitz <address@hidden>
signature.asc
Description: OpenPGP digital signature
- Re: [Qemu-block] [PATCH 36/54] commit: Use real permissions in commit block job, (continued)
- [Qemu-block] [PATCH 35/54] blockjob: Add permissions to block_job_add_bdrv(), Kevin Wolf, 2017/02/21
- [Qemu-block] [PATCH 37/54] commit: Use real permissions for HMP 'commit', Kevin Wolf, 2017/02/21
- [Qemu-block] [PATCH 39/54] block: Fix pending requests check in bdrv_append(), Kevin Wolf, 2017/02/21
- [Qemu-block] [PATCH 41/54] block: Allow backing file links in change_parent_backing_link(), Kevin Wolf, 2017/02/21
- [Qemu-block] [PATCH 38/54] backup: Use real permissions in backup block job, Kevin Wolf, 2017/02/21
- Re: [Qemu-block] [PATCH 38/54] backup: Use real permissions in backup block job,
Max Reitz <=
- [Qemu-block] [PATCH 40/54] block: BdrvChildRole.attach/detach() callbacks, Kevin Wolf, 2017/02/21
- [Qemu-block] [PATCH 42/54] mirror: Use real permissions in mirror/active commit block job, Kevin Wolf, 2017/02/21
- [Qemu-block] [PATCH 43/54] stream: Use real permissions in streaming block job, Kevin Wolf, 2017/02/21
- [Qemu-block] [PATCH 44/54] mirror: Add filter-node-name to blockdev-mirror, Kevin Wolf, 2017/02/21
- [Qemu-block] [PATCH 51/54] block: Assertions for write permissions, Kevin Wolf, 2017/02/21