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 C87C51FF0B6 for ; Thu, 12 Nov 2026 15:14:53 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 3799121673; Thu, 12 Nov 2026 15:14:51 +0100 (CET) From: Filip Schauer To: pve-devel@lists.proxmox.com Subject: [PATCH proxmox 13/26] oci: rename parse_and_extract_image to be tar-specific Date: Thu, 12 Nov 2026 15:10:40 +0100 Message-ID: <20261112141109.137298-14-f.schauer@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261112141109.137298-1-f.schauer@proxmox.com> References: <20261112141109.137298-1-f.schauer@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1794492887435 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.188 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: ACME5UQLPSAV5JPPUKUDPTXVG3GRZTVR X-Message-ID-Hash: ACME5UQLPSAV5JPPUKUDPTXVG3GRZTVR X-MailFrom: f.schauer@proxmox.com 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: Rename `parse_and_extract_image` to `parse_and_extract_tar_image` to clarify that the function specifically operates on an OCI image in a TAR archive. Signed-off-by: Filip Schauer --- proxmox-oci/src/lib.rs | 2 +- proxmox-oci/tests/helper/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/proxmox-oci/src/lib.rs b/proxmox-oci/src/lib.rs index 79e286a4..5652a50f 100644 --- a/proxmox-oci/src/lib.rs +++ b/proxmox-oci/src/lib.rs @@ -42,7 +42,7 @@ pub enum ProxmoxOciError { /// /// On success, this returns the optional container execution parameters /// if present in the image configuration. -pub fn parse_and_extract_image>( +pub fn parse_and_extract_tar_image>( oci_tar_path: P, rootfs_path: P, os: Option<&Os>, diff --git a/proxmox-oci/tests/helper/mod.rs b/proxmox-oci/tests/helper/mod.rs index 46491a89..56e51fda 100644 --- a/proxmox-oci/tests/helper/mod.rs +++ b/proxmox-oci/tests/helper/mod.rs @@ -5,7 +5,7 @@ use std::path::{Path, PathBuf}; use anyhow::Result; -use proxmox_oci::{Arch, Config, Os, ProxmoxOciError, parse_and_extract_image}; +use proxmox_oci::{Arch, Config, Os, ProxmoxOciError, parse_and_extract_tar_image}; use proxmox_sys::fs::make_tmp_dir; mod oci_tar_image_builder; @@ -71,7 +71,7 @@ impl TestImage { } pub fn extract(&self) -> Result, ProxmoxOciError> { - parse_and_extract_image( + parse_and_extract_tar_image( &self.path, &self.extract_dir, Some(&Os::Linux), -- 2.47.3