On 22.03.2013 15:24, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berra...@redhat.com>
> 
> Instead of using /var/lib/libvirt/lxc/$NAME for the FUSE
> filesystem, use /var/lib/libvirt/lxc/$NAME.fuse. This allows
> room for other temporary mounts in the same directory
> ---
>  src/lxc/lxc_container.c | 2 +-
>  src/lxc/lxc_fuse.c      | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c
> index 4d09791..bf17a38 100644
> --- a/src/lxc/lxc_container.c
> +++ b/src/lxc/lxc_container.c
> @@ -604,7 +604,7 @@ static int lxcContainerMountProcFuse(virDomainDefPtr def,
>      char *meminfo_path = NULL;
>  
>      if ((ret = virAsprintf(&meminfo_path,
> -                           "%s/%s/%s/meminfo",
> +                           "%s/%s/%s.fuse/meminfo",
>                             srcprefix ? srcprefix : "", LXC_STATE_DIR,
>                             def->name)) < 0)
>          return ret;
> diff --git a/src/lxc/lxc_fuse.c b/src/lxc/lxc_fuse.c
> index c4be58e..fbd0d56 100644
> --- a/src/lxc/lxc_fuse.c
> +++ b/src/lxc/lxc_fuse.c
> @@ -291,7 +291,7 @@ int lxcSetupFuse(virLXCFusePtr *f, virDomainDefPtr def)
>      if (virMutexInit(&fuse->lock) < 0)
>          goto cleanup2;
>  
> -    if (virAsprintf(&fuse->mountpoint, "%s/%s/", LXC_STATE_DIR,
> +    if (virAsprintf(&fuse->mountpoint, "%s/%s.fuse/", LXC_STATE_DIR,
>                      def->name) < 0) {
>          virReportOOMError();
>          goto cleanup1;
> 

ACK

Michal

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to