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 E09EA1FF0DE for ; Thu, 19 Nov 2026 15:14:52 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id EC1E02172F; Thu, 19 Nov 2026 15:14:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=genua.de; s=202307; t=1795097653; bh=HzQfvFHod9IutIYNzODvCGBu75rW8WcC+snDT7Lbgao=; h=Date:From:To:Subject:References:In-Reply-To:From; b=YHCzd7vlRmqXSfua2ooJRvkAlgoMEsx7HwHP+SGWEhAujxY8XBJbuwW5gdKaw2gjZ l7CVA+3MeqmdoJzIfUhs4v2UHE2tjHDm2fcl3ruleLYQTU3XYcxL9U/VoNfdz/BONN TcecfdhN5tVE+tgSDqpEOmxxmM28JtIk096zhHf94YEcWVZ0LX9odBT5rvCrJTPNpp QUMANoI7Om6sL1PnN1VDiGvic1Mx15CsjJnzygjBX90Hyvk7EljHIGFM6yZqF5pyrs jAm85/nPKQW2EthvOCgjP+/5PZ2KGGAm9k9ASMbtMtkiipLH5nWFg+ZT30T8xIs07K vfOXolAQmsTXw== Date: Thu, 19 Nov 2026 15:14:12 +0100 From: Christian Ludwig To: Subject: [PATCH pve-storage v4 05/20] plugin: support efi-firmware volumes in volume export and import Message-ID: References: MIME-Version: 1.0 In-Reply-To: X-Originating-IP: [192.168.217.185] X-ClientProxiedBy: kch1-mta09.win.genua.de (10.208.16.109) 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.060 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 RCVD_IN_DNSWL_NONE -0.0001 Sender listed at https://www.dnswl.org/, no trust 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: 64WQBLT75MJ4IDPAQOSDYR5WXMK5QVVV X-Message-ID-Hash: 64WQBLT75MJ4IDPAQOSDYR5WXMK5QVVV 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: Allow moving firmware images between nodes, e.g. with 'pvesm export' and 'pvesm import'. Firmware images are raw files, so handle them like ISO images. Reviewed-by: Fiona Ebner Signed-off-by: Christian Ludwig --- src/PVE/Storage/Plugin.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PVE/Storage/Plugin.pm b/src/PVE/Storage/Plugin.pm index 20dbdbc..8752bc6 100644 --- a/src/PVE/Storage/Plugin.pm +++ b/src/PVE/Storage/Plugin.pm @@ -2506,7 +2506,7 @@ sub volume_export_formats { return ('tar+size') if $format eq 'subvol'; return ('raw+size') if PVE::Storage::Common::is_guest_vtype($vtype) - || $vtype =~ /^(iso|snippets|vztmpl|import)$/; + || $vtype =~ /^(iso|snippets|vztmpl|import|efi-firmware)$/; } return (); } @@ -2595,7 +2595,7 @@ sub volume_import { warn $@ if $@; die $err; } - } elsif (grep { $vtype eq $_ } qw(import iso snippets vztmpl)) { + } elsif (grep { $vtype eq $_ } qw(import iso snippets vztmpl efi-firmware)) { eval { # only the header of a raw stream has the length of the data that follows import_raw_stream( @@ -2631,7 +2631,7 @@ sub volume_import_formats { return ('tar+size') if $format eq 'subvol'; return ('raw+size') if PVE::Storage::Common::is_guest_vtype($vtype) - || $vtype =~ /^(iso|snippets|vztmpl|import)$/; + || $vtype =~ /^(iso|snippets|vztmpl|import|efi-firmware)$/; } return (); } -- 2.34.1