Re: [PATCH] xen: add QED format test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Dec 19, 2016 at 10:28:55 +0100, Cédric Bosdonnat wrote:
> Follow up of commit 340bb6b7 to add unit tests for the QED format
> support. Also add missing QED case in xenFormatXLDisk()
> ---
>  src/xenconfig/xen_xl.c                                 | 5 +++++
>  tests/xlconfigdata/test-disk-positional-parms-full.cfg | 2 +-
>  tests/xlconfigdata/test-disk-positional-parms-full.xml | 6 ++++++
>  3 files changed, 12 insertions(+), 1 deletion(-)
> 
> diff --git a/src/xenconfig/xen_xl.c b/src/xenconfig/xen_xl.c
> index 048ecd579..65d8ffc63 100644
> --- a/src/xenconfig/xen_xl.c
> +++ b/src/xenconfig/xen_xl.c
> @@ -1050,6 +1050,11 @@ xenFormatXLDisk(virConfValuePtr list, virDomainDiskDefPtr disk)
>          case VIR_STORAGE_FILE_QCOW2:
>              virBufferAddLit(&buf, "qcow2");
>              break;
> +#ifdef LIBXL_HAVE_QED
> +        case VIR_STORAGE_FILE_QED:
> +            virBufferAddLit(&buf, "qed");
> +            break;
> +#endif

This will make the test fail if LIBXL_HAVE_QED is not defined. Also I
don't really see a reason to use the ifdef here as the code can be
compiled without that being defined.

Attachment: signature.asc
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux