From nobody Sun Feb 8 14:57:02 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.74 as permitted sender) client-ip=63.128.21.74; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-74.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.74 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1584979875; cv=none; d=zohomail.com; s=zohoarc; b=UD60vnmtMwl/OTd6QHsw9uG1muydk0Hb7ACmhttkxIOywfj/oxN+cc4vkxLsJ/dDmFmRHt020jyGqPNQmtxc4a3ao8h4CF6SdfkPAMW+fw/TuxZjbjf4WsBoq/xmnHU8S56crRT+dNcGjXz/gzE+oSWF+vSxJ8CVIW/BG5eEyT0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1584979875; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=y4zoDWRa0R1yPNvnrWyITWHyRKBvfgSlSJhvOV4a+88=; b=F6KijopERakd9WwmwgSNeCYypnEmpdrC2KRpAqelft32C0pcK80iF8i9l/7ozHFj6S6/R/IwuFPhbaGfUjF780f1ZMjOUzhZZ9+1vnXzW6+T1ZBGWdJVCkwg1MJtEDos8it62WGn9ZlJlboN/dXV4ZAIFCE9JvK+spdI4sXi5pc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.74 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-74.mimecast.com (us-smtp-delivery-74.mimecast.com [63.128.21.74]) by mx.zohomail.com with SMTPS id 1584979875298299.8617079444814; Mon, 23 Mar 2020 09:11:15 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-426-otAc_OAROMivt1-q--aYsw-1; Mon, 23 Mar 2020 12:11:09 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id BDC3E477; Mon, 23 Mar 2020 16:11:03 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 712D4196AE; Mon, 23 Mar 2020 16:11:03 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 03D1718089D0; Mon, 23 Mar 2020 16:11:03 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 02NGAjjh004977 for ; Mon, 23 Mar 2020 12:10:45 -0400 Received: by smtp.corp.redhat.com (Postfix) id A76759B931; Mon, 23 Mar 2020 16:10:45 +0000 (UTC) Received: from lpt.redhat.com (unknown [10.40.208.85]) by smtp.corp.redhat.com (Postfix) with ESMTP id DE6FD9B934 for ; Mon, 23 Mar 2020 16:10:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1584979874; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=y4zoDWRa0R1yPNvnrWyITWHyRKBvfgSlSJhvOV4a+88=; b=Q1KFUbq1rKeWWYVchlKNGjiofCD9p11vMLsP5FJJaqW/z68vUjUgyxFmAc1d1rbdgfnYhP 6E9Nh6JVOZjR/laVzTPYazaDy++T9YyGOUzVY/LWZPMhocneJ8c3EG6ho4K2MKBjfOFGpB CPq7YS2gnZeOIuKfQnfnnTrh+7SAZiM= X-MC-Unique: otAc_OAROMivt1-q--aYsw-1 From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Subject: [libvirt PATCH 2/4] qemu: virtiofs: shorten pid filename Date: Mon, 23 Mar 2020 17:10:35 +0100 Message-Id: <7cbea0bf9c3725e218ef3fe105b8d7996e429df6.1584979790.git.jtomko@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" There is no need to repeat the shortName, since it's already present in the directory path. Also use just 'fs' instead of 'virtiofsd'. Signed-off-by: J=C3=A1n Tomko Suggested-by: Andrea Bolognani --- src/qemu/qemu_virtiofs.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/qemu/qemu_virtiofs.c b/src/qemu/qemu_virtiofs.c index d6159206eb..2e3535873d 100644 --- a/src/qemu/qemu_virtiofs.c +++ b/src/qemu/qemu_virtiofs.c @@ -42,13 +42,9 @@ qemuVirtioFSCreatePidFilename(virDomainObjPtr vm, const char *alias) { qemuDomainObjPrivatePtr priv =3D vm->privateData; - g_autofree char *shortName =3D NULL; g_autofree char *name =3D NULL; =20 - if (!(shortName =3D virDomainDefGetShortName(vm->def))) - return NULL; - - name =3D g_strdup_printf("%s-%s-virtiofsd", shortName, alias); + name =3D g_strdup_printf("%s-fs", alias); =20 return virPidFileBuildPath(priv->libDir, name); } --=20 2.25.1