From nobody Mon Feb 9 02:31:53 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1726667103844193.4389322024873; Wed, 18 Sep 2024 06:45:03 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 88DBD1B11; Wed, 18 Sep 2024 09:45:02 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 359FE1C07; Wed, 18 Sep 2024 09:42:26 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 648FA1AD6; Wed, 18 Sep 2024 09:42:13 -0400 (EDT) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id A68B11B0F for ; Wed, 18 Sep 2024 09:42:12 -0400 (EDT) Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-301-UDbHf1kmPnqp1nYeITGlGw-1; Wed, 18 Sep 2024 09:42:11 -0400 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-374b981dd62so3676579f8f.3 for ; Wed, 18 Sep 2024 06:42:11 -0700 (PDT) Received: from wheatley.localdomain (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-378e7800138sm12299974f8f.68.2024.09.18.06.42.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 06:42:09 -0700 (PDT) Received: from wheatley.brq.redhat.com (wheatley.k8r.cz [127.0.0.1]) by wheatley.localdomain (Postfix) with ESMTP id D2C9E24F687D; Wed, 18 Sep 2024 15:42:07 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1726666932; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xjOLQd2gMLSTEhI2jZOW/75n4wIg9fxeofow0Xr4KlQ=; b=CBJIFUnLxLHjjoYnt9aOpch8/bm9SsPhJiLzBUK58BixN5vm2xY0oNVLCVkpNL2z/RaT1v q2xtluhQqoYedNgvy3pzI0JEysnRM395602TopBynMwCr4wXu2MA1MuZjYHeyTkTG5+vz1 dHPKg6nWYxLReeeZr0YDQWp7RqvywIU= X-MC-Unique: UDbHf1kmPnqp1nYeITGlGw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726666930; x=1727271730; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xjOLQd2gMLSTEhI2jZOW/75n4wIg9fxeofow0Xr4KlQ=; b=mda4Muln2mB4WmABgA3RTEn/ni49dleYKR9ZpnhZ2XYe9dWk2V7WJZDuvu80n/is+a cs5p4iJEe/XwEsx8GK2TDUOpZrQAtTPaBkdfDi0PT58bKQbYdmWTY+0YtDKzmQon1syf ZIpTQKJQhFIKAbHokhrp4hgjJWoLclKjAkH3ldIt97q+CYcMf59ojGyIwcnPtWSvOOAe q8IyMLaYW66dQ4oNwheWRsDwdmfKkOTQYJx6gRtZrk/Dc1mj8hRFsMD/8kIe20WZdf9W Wt1ZfMo2887uwPKttt3MQ4PrDxiaNopRR9II2amz49ahyfwHOzn5drvdLUjJcdiyBjJz tO5A== X-Gm-Message-State: AOJu0YwnS/eU35ECbxGiU3koDfkHeyFbwtmXscNsFhSURRxb9+FFj0+Z BYg5D+acr0tGiR83VgoEDNd9dJDhA11gw87R395AS0g9wNUHFszVHVu1ELnnNKtUjZNRpIxopNT QCTm7zy7T83Brtn/zxhc465AvW0kBwl+Og7yXDT/y1NzYJd9uTQUfnJseZthUehA= X-Received: by 2002:adf:f30b:0:b0:371:8dcc:7f9e with SMTP id ffacd0b85a97d-378c2cd3e05mr13116069f8f.2.1726666929972; Wed, 18 Sep 2024 06:42:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGWd2/fEg6L+QMzQhzDCqUJGFXU9sAOR2DVcAY0AkMi1AZkXMJ3aUSRTi5gqJjkkKONaaQBQg== X-Received: by 2002:adf:f30b:0:b0:371:8dcc:7f9e with SMTP id ffacd0b85a97d-378c2cd3e05mr13116053f8f.2.1726666929618; Wed, 18 Sep 2024 06:42:09 -0700 (PDT) From: Martin Kletzander To: devel@lists.libvirt.org Subject: [PATCH 8/8] qemu_domain: Remove unused qemuGetMemoryBackingDomainPath() Date: Wed, 18 Sep 2024 15:42:06 +0200 Message-ID: X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: HHCVOEPR35GW7Q3AH6UG5EW6QBCARDW6 X-Message-ID-Hash: HHCVOEPR35GW7Q3AH6UG5EW6QBCARDW6 X-MailFrom: mkletzan@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: Michael Galaxy X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1726667106038116600 Content-Type: text/plain; charset="utf-8"; x-default="true" The construction is implemented in qemuDomainSetPrivateMemPath() already and saved and used only using priv->memoryBackingDir. Signed-off-by: Martin Kletzander --- src/qemu/qemu_domain.c | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index daec89fca1db..f7c06cee1861 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -13184,30 +13184,6 @@ qemuDomainStorageUpdatePhysical(virQEMUDriverConfi= g *cfg, } =20 =20 -int -qemuGetMemoryBackingDomainPath(qemuDomainObjPrivate *priv, - const virDomainDef *def, - char **path) -{ - virQEMUDriver *driver =3D priv->driver; - g_autoptr(virQEMUDriverConfig) cfg =3D virQEMUDriverGetConfig(driver); - const char *root =3D driver->embeddedRoot; - g_autofree char *shortName =3D NULL; - - if (!(shortName =3D virDomainDefGetShortName(def))) - return -1; - - if (root && !STRPREFIX(cfg->memoryBackingDir, root)) { - g_autofree char * hash =3D virDomainDriverGenerateRootHash("qemu",= root); - *path =3D g_strdup_printf("%s/%s-%s", cfg->memoryBackingDir, hash,= shortName); - } else { - *path =3D g_strdup_printf("%s/%s", cfg->memoryBackingDir, shortNam= e); - } - - return 0; -} - - /** * qemuGetMemoryBackingPath: * @priv: domain private data --=20 2.46.0