Re: [PATCH] qemu_domain: Drop namespace check from top level functions

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

 




On 09/07/2018 08:05 AM, Michal Privoznik wrote:
> In some cases we are checking if the mount namespace is enabled
> at two places: one is at the beginning of exported function (e.g.
> qemuDomainNamespaceSetupDisk()) and the other is at the beginning
> of qemuDomainNamespaceMknodPaths() which is called from the
> former function anyway. Then we have some other functions which
> rely on the later check solely.
> 
> In order to compensate for possibly needles function call,

needless

> qemuDomainNamespaceMknodPaths() returns early if @npaths is zero.
> 
> Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
> ---
>  src/qemu/qemu_domain.c | 12 ++----------
>  1 file changed, 2 insertions(+), 10 deletions(-)
> 

Even though my personal preference for npaths == 0, what's here is
consistent with the same check in qemuDomainNamespaceUnlinkPaths.

Reviewed-by: John Ferlan <jferlan@xxxxxxxxxx>

John

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