Re: [PATCH v3] nwfilter:

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

 




libvir-list-bounces@xxxxxxxxxx wrote on 08/13/2010 04:44:38 PM:


> Incomplete subject line?  It used to be
>  nwfilter: extend nwfilter reload support


Yes. Due to a race condition :-)

>
> On 08/13/2010 02:29 PM, Stefan Berger wrote:
> >  v3:
> >     - Fixed an indentation problem
> >     - added bool parameter to function terminating the IP address
> > learner threads to determine whether future threads may still run
> > (needed in case of driver reload) or all must terminate (need in case of
> > libvirtd termination)
> >
>
> > +    conn = virConnectOpen("qemu:///system");
> > +
> > +    if (conn) {
> > +        /* shut down all threads -- qemud for example will restart them */
> > +        virNWFilterLearnThreadsTerminate(true);
> > +
> > +        nwfilterDriverLock(driverState);
> > +        virNWFilterPoolLoadAllConfigs(conn,
> > + &driverState->pools,
>
> Indentation problem still looks like it is here.


The indentation problem doesn't exist in my local patch. Could this be another Thunderbird formatting issue?

>
> > @@ -1912,7 +1926,11 @@ qemudStartup(int privileged) {
> >                                  1, NULL, NULL) < 0)
> >          goto error;
> >
> > -    qemuReconnectDomains(qemu_driver);
> > +    conn = virConnectOpen(qemu_driver->privileged ?
> > +                          "qemu:///system" :
> > +                          "qemu:///session");
>
> How come this one is conditional, but the other one was hard-coded to
> system?


The same type of check exists several times in this file of the qemu driver. I ended up hard-coding it in the nwfilter driver case above since I don't have a flag in the nwfilter driver for whether it's privileged or not and I don't know what the difference would be.

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