From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 31E291FF0A7 for ; Mon, 17 Aug 2026 11:37:46 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 2742723C08; Mon, 17 Aug 2026 11:36:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=genua.de; s=202307; t=1786958976; bh=V8tYf+QpTl+fyJNtd5/MS4c5REuxmuW/XPwldizliDw=; h=Date:From:To:Subject:References:In-Reply-To:From; b=LOMC7w4isvNV11lSX+igiAFZAGLYDkpeCfvnVVm8kmb5vYWGy/M50vExL4k0WAO3B nv2j62+8iufGGvSkTptmrS5BhuWXByULjr+B+zGIkqdLF2tICkp4ezevh3Yem7YpR8 ll3yEBPAGPEmSFR0yaeo5qX+ztnIQTvpHvAiBGeZ6wSFOhXHSAoUpFR01Td5JLNmGa V7xdbcnHwEVTAXJe8SCa6X7GjWNT3a532WdVnaFcyvDTtU5Q3dCU3fWzuF3Pj3stlj c8zLrPVEL/RrsDSNJtIFlo22+3sRiWhqWNtrkIZlBeejj+oB7zkgns+gkSbCvUaWbq USNqFBXSbBG9A== Date: Mon, 17 Aug 2026 11:29:35 +0200 From: Christian Ludwig To: , <-b@genua.de>, Subject: [PATCH qemu-server 11/13] test: efi-firmware volumes replication Message-ID: References: MIME-Version: 1.0 In-Reply-To: X-Originating-IP: [192.168.217.185] X-ClientProxiedBy: kch1-mta08.win.genua.de (10.208.16.108) To kch1-mta07.win.genua.de (10.208.16.107) Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha-256"; boundary="----8BE4FDC19DD55EED30DC4E28EC67E2BB" X-SPAM-LEVEL: Spam detection results: 0 DKIM_INVALID 0.1 DKIM or DK signature exists, but is not valid DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DMARC_PASS -0.1 DMARC pass policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) SPF_HELO_PASS -0.001 SPF: HELO matches SPF record SPF_PASS -0.001 SPF: sender matches SPF record UNPARSEABLE_RELAY 0.001 Informational: message has unparseable relay lines Message-ID-Hash: TC2ABRZOLU46ZRPC3I6QQBXATEG26UJE X-Message-ID-Hash: TC2ABRZOLU46ZRPC3I6QQBXATEG26UJE X-MailFrom: christian_ludwig@genua.de X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Content-Filtered-By: Mailman/MimeDel 3.3.10 X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: ------8BE4FDC19DD55EED30DC4E28EC67E2BB Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Test that efi-firmware volumes are excluded from volume replication. Signed-off-by: Christian Ludwig --- src/test/test_get_replicatable_volumes.pl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/test/test_get_replicatable_volumes.pl b/src/test/test_get_replicatable_volumes.pl index 6a3d0338..7ecda208 100755 --- a/src/test/test_get_replicatable_volumes.pl +++ b/src/test/test_get_replicatable_volumes.pl @@ -22,6 +22,7 @@ my $storecfg = { 'backup' => 1, 'images' => 1, 'rootdir' => 1, + 'efi-firmware' => 1, }, path => "/var/lib/vz", }, @@ -159,5 +160,15 @@ $conf = PVE::QemuServer::parse_vm_config("/qemu-server/$vmid.conf", $rawconf); eval { $volumes = PVE::QemuConfig->get_replicatable_volumes($storecfg, $vmid, $conf, 0, 0); }; is($@, "missing replicate feature on volume 'local:900/vm-900-disk-2.raw'\n", $test_name); +$test_name = "efi-firmware is shared, not owned by VM"; +$rawconf = <<__EOD__; +bios: ovmf +efi-firmware: local:efi-firmware/custom.fd +__EOD__ + +$conf = PVE::QemuServer::parse_vm_config("/qemu-server/$vmid.conf", $rawconf); +$volumes = PVE::QemuConfig->get_replicatable_volumes($storecfg, $vmid, $conf, 0, 0); +is_deeply($volumes, {}, $test_name); + done_testing(); exit(0); -- 2.34.1 ------8BE4FDC19DD55EED30DC4E28EC67E2BB--