From nobody Sat Feb 7 08:13:47 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 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=1644832816; cv=none; d=zohomail.com; s=zohoarc; b=HfcsxtzNC8GHli/9cxq2HJpPK745OE8CuHgEvlB2DBSck+t04wW4RGn9W84xAP7zHDAQP3HLCDQz1bJezguMzzOrZoqpSfVYX5gj4ppBQo0hrP50SG03BWt6t5BTVubPj65FN3Yp5hALT19JxzBWJE7m/FrdTew8Feq9pgrVe0c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1644832816; 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=aY//VaZ7QBldeA/ZIbfm3lFMH1rE6lFbfsfpHpI6Xk0=; b=hTCGbkyzfWr57bjRmC0Olx9JTbnhQ2s7RlZvaBkd1NG/FpSvIltfhY1OvPx6dsTSgs1s40MP9m417v2rsWycX4WnAR87pp9bW4sCYlqFdXsqq2hIjUJybgrHiQRc811aI9NsUyILtl4nPnfquh9QUXhRU6kyfUw4H7VNl+XADkI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1644832816984156.85115177643297; Mon, 14 Feb 2022 02:00:16 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-297-Hy8RyWIUPNC4KuUk1h3dpg-1; Mon, 14 Feb 2022 05:00:14 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E7BD31091DB7; Mon, 14 Feb 2022 10:00:08 +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 79A6E10841AF; Mon, 14 Feb 2022 10:00:08 +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 2C0881809CB8; Mon, 14 Feb 2022 10:00:08 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 21EA05d9018358 for ; Mon, 14 Feb 2022 05:00:05 -0500 Received: by smtp.corp.redhat.com (Postfix) id 5118A5E498; Mon, 14 Feb 2022 10:00:05 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.41]) by smtp.corp.redhat.com (Postfix) with ESMTP id A8AD95E49F for ; Mon, 14 Feb 2022 09:59:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644832816; 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=aY//VaZ7QBldeA/ZIbfm3lFMH1rE6lFbfsfpHpI6Xk0=; b=RTzTeiWFyOTu7OTbU5b4lltc4HJlBsseNWE9crp54mFYT0Zq4Ey9AGIb6LteingnqlxXez 2nPgKRzgKDpIAFxxEUySgf4smqbwU41E0HWebpOmyINUITBZt8sPi9+hGy3MeRFnlQXFQU YXdWui2qNzcZN5g5EHyqQaZHxvkjkqQ= X-MC-Unique: Hy8RyWIUPNC4KuUk1h3dpg-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 2/2] qemu: domain: Change 'Id' to 'ID' in qemuDomainStorageIdNew/Reset Date: Mon, 14 Feb 2022 10:59:53 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 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.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1644832819525100003 Content-Type: text/plain; charset="utf-8" In a patch adding similarly named APIs I was asked to use 'ID' instead of 'Id'. Since the code is being put together fix qemuDomainStorageIdNew/Reset first. Signed-off-by: Peter Krempa --- src/qemu/qemu_domain.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index d44244f9b8..ee1cf6f9bb 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -657,27 +657,27 @@ qemuDomainMasterKeyCreate(virDomainObj *vm) /** - * qemuDomainStorageIdNew: + * qemuDomainStorageIDNew: * @priv: qemu VM private data object. * * Generate a new unique id for a storage object. Useful for node name gen= eration. */ static unsigned int -qemuDomainStorageIdNew(qemuDomainObjPrivate *priv) +qemuDomainStorageIDNew(qemuDomainObjPrivate *priv) { return ++priv->nodenameindex; } /** - * qemuDomainStorageIdReset: + * qemuDomainStorageIDReset: * @priv: qemu VM private data object. * * Resets the data for the node name generator. The node names need to be = unique * for a single instance, so can be reset on VM shutdown. */ static void -qemuDomainStorageIdReset(qemuDomainObjPrivate *priv) +qemuDomainStorageIDReset(qemuDomainObjPrivate *priv) { priv->nodenameindex =3D 0; } @@ -1681,7 +1681,7 @@ qemuDomainObjPrivateDataClear(qemuDomainObjPrivate *p= riv) g_clear_pointer(&priv->backup, virDomainBackupDefFree); /* reset node name allocator */ - qemuDomainStorageIdReset(priv); + qemuDomainStorageIDReset(priv); priv->dbusDaemonRunning =3D false; @@ -3090,7 +3090,7 @@ qemuDomainObjPrivateXMLParse(xmlXPathContextPtr ctxt, if (qemuDomainObjPrivateXMLParseBackups(priv, ctxt) < 0) goto error; - qemuDomainStorageIdReset(priv); + qemuDomainStorageIDReset(priv); if (virXPathULongLong("string(./nodename/@index)", ctxt, &priv->nodenameindex) =3D=3D -2) { virReportError(VIR_ERR_XML_ERROR, "%s", @@ -10646,7 +10646,7 @@ qemuDomainPrepareStorageSourceBlockdev(virDomainDis= kDef *disk, qemuDomainObjPrivate *priv, virQEMUDriverConfig *cfg) { - src->id =3D qemuDomainStorageIdNew(priv); + src->id =3D qemuDomainStorageIDNew(priv); src->nodestorage =3D g_strdup_printf("libvirt-%u-storage", src->id); src->nodeformat =3D g_strdup_printf("libvirt-%u-format", src->id); @@ -10773,7 +10773,7 @@ qemuDomainPrepareHostdev(virDomainHostdevDef *hostd= ev, src->readonly =3D hostdev->readonly; if (virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_BLOCKDEV_HOSTDEV_= SCSI)) { - src->id =3D qemuDomainStorageIdNew(priv); + src->id =3D qemuDomainStorageIDNew(priv); src->nodestorage =3D g_strdup_printf("libvirt-%d-backend",= src->id); backendalias =3D src->nodestorage; } --=20 2.34.1