mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
qemu: conf: Clarify paths that are relative to libDir
Rather than duplicate libDir for each new path
This commit is contained in:
parent
7b9de91404
commit
c19f43ae7e
@ -192,21 +192,18 @@ virQEMUDriverConfigPtr virQEMUDriverConfigNew(bool privileged)
|
||||
"%s/run/libvirt/qemu", LOCALSTATEDIR) < 0)
|
||||
goto error;
|
||||
|
||||
if (virAsprintf(&cfg->libDir,
|
||||
"%s/lib/libvirt/qemu", LOCALSTATEDIR) < 0)
|
||||
goto error;
|
||||
|
||||
if (virAsprintf(&cfg->cacheDir,
|
||||
"%s/cache/libvirt/qemu", LOCALSTATEDIR) < 0)
|
||||
goto error;
|
||||
if (virAsprintf(&cfg->saveDir,
|
||||
"%s/lib/libvirt/qemu/save", LOCALSTATEDIR) < 0)
|
||||
|
||||
if (virAsprintf(&cfg->libDir,
|
||||
"%s/lib/libvirt/qemu", LOCALSTATEDIR) < 0)
|
||||
goto error;
|
||||
if (virAsprintf(&cfg->snapshotDir,
|
||||
"%s/lib/libvirt/qemu/snapshot", LOCALSTATEDIR) < 0)
|
||||
if (virAsprintf(&cfg->saveDir, "%s/save", cfg->libDir) < 0)
|
||||
goto error;
|
||||
if (virAsprintf(&cfg->autoDumpPath,
|
||||
"%s/lib/libvirt/qemu/dump", LOCALSTATEDIR) < 0)
|
||||
if (virAsprintf(&cfg->snapshotDir, "%s/snapshot", cfg->libDir) < 0)
|
||||
goto error;
|
||||
if (virAsprintf(&cfg->autoDumpPath, "%s/dump", cfg->libDir) < 0)
|
||||
goto error;
|
||||
} else {
|
||||
char *rundir;
|
||||
|
Loading…
x
Reference in New Issue
Block a user