Re: [PATCH 2/4] Stop passing around old root directory prefix

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

 



On 15.05.2013 11:53, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
> 
> Many methods accept a string parameter specifying the
> old root directory prefix. Since removal of the non-pivot
> root container setup codepaths, this parameter is obsolete
> in many methods where the callers always pass "/.oldroot".
> 
> Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx>
> ---
>  src/lxc/lxc_container.c | 85 ++++++++++++++++++++-----------------------------
>  1 file changed, 35 insertions(+), 50 deletions(-)
> 
> diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c
> index f0a085e..1ebb625 100644
> --- a/src/lxc/lxc_container.c
> +++ b/src/lxc/lxc_container.c
> @@ -745,15 +745,14 @@ cleanup:
>  }
>  
>  #if WITH_FUSE
> -static int lxcContainerMountProcFuse(virDomainDefPtr def,
> -                                     const char *srcprefix)
> +static int lxcContainerMountProcFuse(virDomainDefPtr def)
>  {
>      int ret;
>      char *meminfo_path = NULL;
>  
>      if ((ret = virAsprintf(&meminfo_path,
> -                           "%s/%s/%s.fuse/meminfo",
> -                           srcprefix ? srcprefix : "", LXC_STATE_DIR,
> +                           "/.oldroot/%s/%s.fuse/meminfo",

Don't we wanna define "/.oldroot/" as a macro?

> +                           LXC_STATE_DIR,
>                             def->name)) < 0)
>          return ret;
>  

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