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 46C1A1FF0C2 for ; Thu, 03 Dec 2026 16:06:53 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 174312178E; Thu, 03 Dec 2026 16:06:53 +0100 (CET) From: Dominik Csapak To: pbs-devel@lists.proxmox.com Subject: [PATCH proxmox{,-backup} 0/2] tape: add support for LTO10 densities Date: Thu, 3 Dec 2026 16:06:25 +0100 Message-ID: <20261203150649.3510587-1-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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: B65ZNZKEHCVGLV4HWMACG7BAAWKB7GO4 X-Message-ID-Hash: B65ZNZKEHCVGLV4HWMACG7BAAWKB7GO4 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: With an LTO10 tape loaded, querying the drive status (API, GUI and `pmt status`) fails, since the reported density code is unknown to the TapeDensity enum. The proxmox patch adds the density codes for LTO10 (0x62) and the 40 TB LTO10 Premium cartridges (0x63). Since they sort after LTO9, formatting such media also takes the LTO9+ code path instead of falling back to a plain erase. The proxmox-backup patch makes the status query fall back to 'unknown' for unrecognized density codes, like format_media already does, so future generations do not break the status query again. It does not depend on the proxmox patch. I couldn't test on real hardware since I don't have access to an LTO10 drive yet, but I tested via a VTL that can emulate the density code. proxmox: Dominik Csapak (1): pbs api types: tape: add lto10 densities pbs-api-types/src/tape/drive.rs | 6 ++++++ 1 file changed, 6 insertions(+) proxmox-backup: Dominik Csapak (1): tape: don't fail on unknown reported density pbs-tape/src/sg_tape.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) Summary over all repositories: 2 files changed, 10 insertions(+), 1 deletions(-) -- Generated by murpp 0.11.0