[libvirt] [PATCH 10/12] qemu: Validate backing store of 'mirror' for block copy

Ján Tomko jtomko at redhat.com
Tue May 21 10:41:23 UTC 2019


On Fri, May 17, 2019 at 01:19:56PM +0200, Peter Krempa wrote:
>Since 4e797f1a we parse backingStore of mirror which will later be used
>with blockdev. Add some validation for the user passed mirror at the
>current point to make sure it's not used improperly.
>
>Validate that it's not used without blockdev and also that it's not
>passed when not requesting a shallow copy. Also add a chain terminator
>for a deep copy since we know the resulting mirror will not have chain.
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/qemu/qemu_driver.c | 72 ++++++++++++++++++++++++++++++++++++++----
> 1 file changed, 66 insertions(+), 6 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190521/b9bff39a/attachment-0001.sig>


More information about the libvir-list mailing list