Re: [PATCH 06/17] nwfilter: Add configFile into virNWFilterObj

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

 



On 06/02/2017 12:25 PM, John Ferlan wrote:
> When creating an object, save the configFile name in the object rather
> than needing to build it up each time for the SaveConfig. This involves
> adding a @configDir parameter to virNWFilterObjListAssignDef and removing
> the @configDir from virNWFilterObjSaveConfig.

Why? This keeps the path in memory for the whole life time of the object
even though it's needed just occasionally - at the beginning and
probably at the end.

> 
> Signed-off-by: John Ferlan <jferlan@xxxxxxxxxx>
> ---
>  src/conf/virnwfilterobj.c      | 38 ++++++++++++++++++++------------------
>  src/conf/virnwfilterobj.h      |  6 +++---
>  src/nwfilter/nwfilter_driver.c |  5 +++--
>  3 files changed, 26 insertions(+), 23 deletions(-)

Michal

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