]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: blockcopy: sanitize permission handling for 'mirror'
authorPeter Krempa <pkrempa@redhat.com>
Wed, 15 May 2019 15:19:11 +0000 (17:19 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 21 May 2019 12:22:06 +0000 (14:22 +0200)
commit47d610e960f8adc2f0eb26281c1eda95fc5b3d1a
tree75c2988afda43e704d5e90feafa4926353182d78
parent32ec5fee02c01296622f66a512c44022cc73d308
qemu: blockcopy: sanitize permission handling for 'mirror'

At the point when we want to modify the permissions for the 'mirror' we
know whether it is supposed to have a backing chain or no. Given that
mirror->backingStore is populated only when we'd need to touch it ayways
we can use qemuDomainStorageSourceChainAccessAllow even in place of
qemuDomainStorageSourceAccessAllow used for other cases to simplify the
code.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_driver.c