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>
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);
}