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 F2AAA1FF0C2 for ; Thu, 03 Dec 2026 16:06:55 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 45E2A217BF; Thu, 03 Dec 2026 16:06:53 +0100 (CET) From: Dominik Csapak To: pbs-devel@lists.proxmox.com Subject: [PATCH proxmox 1/2] pbs api types: tape: add lto10 densities Date: Thu, 3 Dec 2026 16:06:26 +0100 Message-ID: <20261203150649.3510587-2-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261203150649.3510587-1-d.csapak@proxmox.com> References: <20261203150649.3510587-1-d.csapak@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.239 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: DCRIRMZWOJUZKD7T4OMVPJMR4RE4MZQU X-Message-ID-Hash: DCRIRMZWOJUZKD7T4OMVPJMR4RE4MZQU X-MailFrom: d.csapak@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 Backup Server development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Without these, querying the drive status (e.g. via the API or `pmt status`) fails with an LTO10 tape loaded, since the reported density code cannot be parsed. This also lets LTO10 media take the LTO9+ code path when formatting, instead of falling back to a plain erase. Signed-off-by: Dominik Csapak --- pbs-api-types/src/tape/drive.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pbs-api-types/src/tape/drive.rs b/pbs-api-types/src/tape/drive.rs index 9f7599ba..afb18c29 100644 --- a/pbs-api-types/src/tape/drive.rs +++ b/pbs-api-types/src/tape/drive.rs @@ -139,6 +139,10 @@ pub enum TapeDensity { LTO8, /// LTO9 LTO9, + /// LTO10 + LTO10, + /// LTO10 Premium + LTO10P, #[cfg(feature = "enum-fallback")] #[serde(untagged)] UnknownEnumValue(FixedString), @@ -160,6 +164,8 @@ impl TryFrom for TapeDensity { 0x5d => TapeDensity::LTO7M8, 0x5e => TapeDensity::LTO8, 0x60 => TapeDensity::LTO9, + 0x62 => TapeDensity::LTO10, + 0x63 => TapeDensity::LTO10P, _ => bail!("unknown tape density code 0x{:02x}", value), }; Ok(density) -- 2.47.3