mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 01:34:11 +03:00
qemu: virtiofs: shorten pid filename
There is no need to repeat the shortName, since it's already present in the directory path. Also use just 'fs' instead of 'virtiofsd'. https://bugzilla.redhat.com/show_bug.cgi?id=1816577 Signed-off-by: Ján Tomko <jtomko@redhat.com> Suggested-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
0be0126052
commit
7055af6c22
@ -42,13 +42,9 @@ qemuVirtioFSCreatePidFilename(virDomainObjPtr vm,
|
||||
const char *alias)
|
||||
{
|
||||
qemuDomainObjPrivatePtr priv = vm->privateData;
|
||||
g_autofree char *shortName = NULL;
|
||||
g_autofree char *name = NULL;
|
||||
|
||||
if (!(shortName = virDomainDefGetShortName(vm->def)))
|
||||
return NULL;
|
||||
|
||||
name = g_strdup_printf("%s-%s-virtiofsd", shortName, alias);
|
||||
name = g_strdup_printf("%s-fs", alias);
|
||||
|
||||
return virPidFileBuildPath(priv->libDir, name);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user