]> git.proxmox.com Git - mirror_qemu.git/commit - block/backup.c
backup: Use real permissions in backup block job
authorKevin Wolf <kwolf@redhat.com>
Wed, 25 Jan 2017 10:39:04 +0000 (11:39 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 28 Feb 2017 19:40:37 +0000 (20:40 +0100)
commit4e9e4323d5ec07a07f8db9317e1842a5e00a14e2
tree64553f45bd929623f75d394f1bbbe131fd67b22f
parentd3f06759222e70979965e3afccfd88eddd3cc454
backup: Use real permissions in backup block job

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 <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Acked-by: Fam Zheng <famz@redhat.com>
block/backup.c
tests/qemu-iotests/055