From nobody Sun Feb 8 22:35:05 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 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=1595410924; cv=none; d=zohomail.com; s=zohoarc; b=SjVh+tNbW8TGse+UIEGk05dgjLwKWyhUjad8ikDF5GVqYCcQsOfijCKB0lgDn0z55m/0+zG8IoU+KAldM1cVspXX/4xDMs4wx2zs9Cha7VNkznGfQ6MPJjsN+u33KLpFe4uCygzqlFCYw/l2FuJGliQvlzdky/QjR/Qc1wNfX5g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1595410924; 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=8kumj1L2+yb5Fxh0SWG9Oh59ibpSctm54S9IXQxv7D8=; b=YphIVUSZnRX37NQfvtYW7Dw8AoP2mIHrw3aAxbkneuhGOfDECMWiD+BznDg0YiFNyu7ABYjGki1H0159wcLLQcO/puSn/m+fPFJEGoU5C6+uAU3MEyh2+aDSalFtk1tLovh2WkAuhaEfBjPe0DmGaB3TU4xRgJ9naHyqiEjD/jo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 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-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1595410924197396.94876132114257; Wed, 22 Jul 2020 02:42:04 -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-510-wojYOTFzPTuVTdTNRzx2JQ-1; Wed, 22 Jul 2020 05:41:00 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5B0C091276; Wed, 22 Jul 2020 09:40:55 +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 3BE1978540; Wed, 22 Jul 2020 09:40:55 +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 0B548180597C; Wed, 22 Jul 2020 09:40:55 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 06M9ejUF000893 for ; Wed, 22 Jul 2020 05:40:45 -0400 Received: by smtp.corp.redhat.com (Postfix) id DEF1C1A90F; Wed, 22 Jul 2020 09:40:45 +0000 (UTC) Received: from localhost.localdomain (unknown [10.40.195.120]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5E2E41A8F7 for ; Wed, 22 Jul 2020 09:40:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1595410922; 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=8kumj1L2+yb5Fxh0SWG9Oh59ibpSctm54S9IXQxv7D8=; b=CAh6JGBak2Z82Tt3rRA9H9Hclej18Wj1hXxQW0Ws7PzNt/pOa5nBSnU8OfmzXKWL4jntMP 5tIhfbPcGwBj6eKMYntjsYJCZPE2SyyW34sQEQPcoV8DFmVC92jesr3qHL5323o9Iyxre/ UtvKXPMFg41wWxwxkkqmjcGpTxVUXyg= X-MC-Unique: wojYOTFzPTuVTdTNRzx2JQ-1 From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH v1 09/34] qemu_domain_namespace.c: Rename qemuDomainAttachDeviceMknodData Date: Wed, 22 Jul 2020 11:40:03 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 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.79 on 10.5.11.11 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" This structure is going to be used from not only device attach code, but also when building the namespace. Moreover, the code lives in a separate file so the chances of clashing with another name are minimal. Signed-off-by: Michal Privoznik Reviewed-by: J=C3=A1n Tomko --- src/qemu/qemu_domain_namespace.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/qemu/qemu_domain_namespace.c b/src/qemu/qemu_domain_namesp= ace.c index e385cda64a..40c4fb36cb 100644 --- a/src/qemu/qemu_domain_namespace.c +++ b/src/qemu/qemu_domain_namespace.c @@ -1098,7 +1098,7 @@ qemuDomainNamespaceAvailable(qemuDomainNamespace ns G= _GNUC_UNUSED) } =20 =20 -struct qemuDomainAttachDeviceMknodData { +struct qemuDomainMknodData { virQEMUDriverPtr driver; virDomainObjPtr vm; const char *file; @@ -1117,7 +1117,7 @@ static int qemuDomainAttachDeviceMknodHelper(pid_t pid G_GNUC_UNUSED, void *opaque) { - struct qemuDomainAttachDeviceMknodData *data =3D opaque; + struct qemuDomainMknodData *data =3D opaque; int ret =3D -1; bool delDevice =3D false; bool isLink =3D S_ISLNK(data->sb.st_mode); @@ -1262,7 +1262,7 @@ qemuDomainAttachDeviceMknodRecursive(virQEMUDriverPtr= driver, unsigned int ttl) { g_autoptr(virQEMUDriverConfig) cfg =3D NULL; - struct qemuDomainAttachDeviceMknodData data; + struct qemuDomainMknodData data; int ret =3D -1; g_autofree char *target =3D NULL; bool isLink; --=20 2.26.2