mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
Move FUSE mount to /var/lib/libvirt/lxc/$NAME.fuse
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
This commit is contained in:
parent
d50cb2b115
commit
05f664b12c
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user