mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
qemu: conf: Clarify paths that are relative to libDir
Rather than duplicate libDir for each new path
(cherry picked from commit c19f43ae7e
)
This commit is contained in:
parent
96789b1eb6
commit
808a638240
@ -148,21 +148,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…
Reference in New Issue
Block a user