From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 98B5B1FF0A7 for ; Mon, 17 Aug 2026 14:00:59 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 7032023D7C; Mon, 17 Aug 2026 14:00:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=genua.de; s=202307; t=1786967976; bh=hG/q3yJSKS8QNOLahrgHvd2zK5aCyZX8+PbgEZmceIU=; h=Date:From:To:Subject:References:In-Reply-To:From; b=YzPoYvkIcMME3qMrxmTDMSe2SePtxCK4BWvWrt/dMYp66iYLZFuAHdYLyqPTgEO6C Mb9jib44mrL9zaiubV2+HhJZKIZObbP7XRd8An9/z3ZgJGiJARxViiElI34QOMlz99 nafBpSr+rCMZ0ZVvumtTlKTVsuIauhAhIf46J/YnngZiXBzWx9A5rhcK483QUiLk5w jQhVJhAa+JtroHCkIU6Qm/APh8147slUj3BbQpttCb/TlJWed8R2xC9v8c3vCQI4SN mYC/3m2jdeFLOOuQKegTmZS2QYhSHCelN22TEd2o3c4FbLnf3VeQMRLehTWvhNDXP5 L/+KCDSRqFXLw== Date: Mon, 17 Aug 2026 13:59:35 +0200 From: Christian Ludwig To: 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="----896F5C58D9D3FE3FAAFC388170DF1F6A" X-SPAM-LEVEL: Spam detection results: 0 AWL 0.153 Adjusted score from AWL reputation of From: address DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain DMARC_PASS -0.1 DMARC pass policy 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: 6TTSD26YWJL77OXIVHDHZWRNQBCHY3IR X-Message-ID-Hash: 6TTSD26YWJL77OXIVHDHZWRNQBCHY3IR 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: ------896F5C58D9D3FE3FAAFC388170DF1F6A 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 ------896F5C58D9D3FE3FAAFC388170DF1F6A--