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 66C251FF09B for ; Mon, 28 Sep 2026 07:49:55 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id A09E021848; Mon, 28 Sep 2026 07:48:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=genua.de; s=202307; t=1790574497; bh=CG8iZ3x2fcpyUG7rPdrpN/uObltjPK9XQDMiE0rbg14=; h=Date:From:To:Subject:References:In-Reply-To:From; b=poRlsgwnycdBdoZpIQVA6mrA8h070K+2RovbwOKBaKWearexVIQIdYT8d8fMsb2Jh AV/sqUSP9ZdRjGO0f/rKIhm0V1WDBRsfMaGrbW0Duh9Bj4yfRIRkhVXdrnVNRfil2s ihjOC6qetiL6TCnYgNNF3sGgRacG7N01naHg86/tS7bt0Mqfa0LiL7CDleS2K4F3ci kulOrXC3g0k4Z4DFJv9l74uH1wTw4Os2V3borP5jWqo4SzlGtGJhF8T7dBEViMD4+F pTJ0bwt8PPft6mS0CdVXOcCjRiAGyP3jf5UMxPoy9IL6HMNJc9/D4Oo33ypLGtGlQS 9/C1fOFvvGiRQ== Date: Mon, 28 Sep 2026 07:48:13 +0200 From: Christian Ludwig To: Subject: [PATCH v2 qemu-server 11/16] 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-mta07.win.genua.de (10.208.16.107) To kch1-mta07.win.genua.de (10.208.16.107) Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline X-SPAM-LEVEL: Spam detection results: 0 AWL 0.082 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: YNK4QTNNQLGESGHOP36H3UWWL5GYOAAY X-Message-ID-Hash: YNK4QTNNQLGESGHOP36H3UWWL5GYOAAY 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-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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