Re: [libvirt] [PATCH] Add dummy nwfilter driver to test driver

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

 



On Tue, Mar 30, 2010 at 04:02:53PM +0100, Matthias Bolte wrote:
> 2010/3/29 Stefan Berger <stefanb@xxxxxxxxxx>:
> > 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@xxxxxxxxxx>
> >
> > 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?

Yes, though in this case it has no effect :-)

Daniel
-- 
|: Red Hat, Engineering, London    -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :|
|: http://autobuild.org        -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

--
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]