[libvirt] [PATCH 5/7] qemu: block: Use simple backing stores string format if possible

Ján Tomko jtomko at redhat.com
Thu Jul 25 08:26:28 UTC 2019


On Tue, Jul 23, 2019 at 02:08:49PM +0200, Peter Krempa wrote:
>In case when the backing store can be represented with something
>simpler such as an URI we can use it rather than falling back to the

a URI

>json: pseudo-protocol.
>
>In cases when it's not worth it (e.g. with the old ugly NBD or RBD
>strings let's switch to json).

the parenthesis should end earlier

>
>The function is exported as we'll need it when overwriting the ugly
>strings qemu would come up with during blockjobs.
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/qemu/qemu_block.c                         | 93 ++++++++++++++-----
> src/qemu/qemu_block.h                         |  4 +
> .../imagecreate/qcow2-backing-raw-nbd.json    |  2 +-
> 3 files changed, 76 insertions(+), 23 deletions(-)
>

This would have been easier to read if you had split the functional
change from code movement.

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/20190725/3792db25/attachment-0001.sig>


More information about the libvir-list mailing list