mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-23 03:42:19 +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;
|
char *meminfo_path = NULL;
|
||||||
|
|
||||||
if ((ret = virAsprintf(&meminfo_path,
|
if ((ret = virAsprintf(&meminfo_path,
|
||||||
"%s/%s/%s/meminfo",
|
"%s/%s/%s.fuse/meminfo",
|
||||||
srcprefix ? srcprefix : "", LXC_STATE_DIR,
|
srcprefix ? srcprefix : "", LXC_STATE_DIR,
|
||||||
def->name)) < 0)
|
def->name)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -291,7 +291,7 @@ int lxcSetupFuse(virLXCFusePtr *f, virDomainDefPtr def)
|
|||||||
if (virMutexInit(&fuse->lock) < 0)
|
if (virMutexInit(&fuse->lock) < 0)
|
||||||
goto cleanup2;
|
goto cleanup2;
|
||||||
|
|
||||||
if (virAsprintf(&fuse->mountpoint, "%s/%s/", LXC_STATE_DIR,
|
if (virAsprintf(&fuse->mountpoint, "%s/%s.fuse/", LXC_STATE_DIR,
|
||||||
def->name) < 0) {
|
def->name) < 0) {
|
||||||
virReportOOMError();
|
virReportOOMError();
|
||||||
goto cleanup1;
|
goto cleanup1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user