[libvirt] [PATCH] xen: add QED format test

Cedric Bosdonnat cbosdonnat at suse.com
Mon Dec 19 10:16:17 UTC 2016


On Mon, 2016-12-19 at 10:40 +0100, Peter Krempa wrote:
> 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.

oh indeed... I'll fix those.

--
Cedric

> --
> libvir-list mailing list
> libvir-list at redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list




More information about the libvir-list mailing list