[libvirt] [PATCH] Add dummy nwfilter driver to test driver
Stefan Berger
stefanb at us.ibm.com
Tue Mar 30 15:15:20 UTC 2010
Matthias Bolte <matthias.bolte at googlemail.com> wrote on 03/30/2010
11:02:53 AM:
>
> 2010/3/29 Stefan Berger <stefanb at us.ibm.com>:
> > This patch adds a dummy nwfilter driver to the test driver so that the
> > int-overflow test passes without modifications.
> >
> > Signed-off-by: Stefan Berger <Stefanb at us.ibm.com>
> >
> > Index: libvirt/src/test/test_driver.c
> > ===================================================================
> > --- libvirt.orig/src/test/test_driver.c
> > +++ libvirt/src/test/test_driver.c
> > @@ -5205,6 +5205,22 @@ static int testSecretClose(virConnectPtr
> > return 0;
> > }
> >
> > +
> > +static virDrvOpenStatus testNWFilterOpen(virConnectPtr conn,
> > + virConnectAuthPtr auth
> ATTRIBUTE_UNUSED,
> > + int flags ATTRIBUTE_UNUSED)
{
> > + if (STRNEQ(conn->driver->name, "Test"))
> > + return VIR_DRV_OPEN_DECLINED;
> > +
> > + conn->secretPrivateData = conn->privateData;
>
> Shouldn't nwfilterPrivateData be used here instead of secretPrivateData?
True. Will fix.
Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100330/dee173df/attachment-0001.htm>
More information about the libvir-list
mailing list