From: Dominik Csapak <d.csapak@proxmox.com>
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 [thread overview]
Message-ID: <20261203150649.3510587-2-d.csapak@proxmox.com> (raw)
In-Reply-To: <20261203150649.3510587-1-d.csapak@proxmox.com>
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 <d.csapak@proxmox.com>
---
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<u8> 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
next prev parent reply other threads:[~2026-12-03 15:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 15:06 [PATCH proxmox{,-backup} 0/2] tape: add support for LTO10 densities Dominik Csapak
2026-12-03 15:06 ` Dominik Csapak [this message]
2026-12-03 15:06 ` [PATCH proxmox-backup 2/2] tape: don't fail on unknown reported density Dominik Csapak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261203150649.3510587-2-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox