From: "Laurențiu Leahu-Vlăducu" <l.leahu-vladucu@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox/proxmox-backup v2] Automatically select a drive (if part of a changer) when loading tapes
Date: Thu, 6 Feb 2025 13:28:30 +0100 [thread overview]
Message-ID: <20250206122833.171965-1-l.leahu-vladucu@proxmox.com> (raw)
This patch adds the possibility to load tapes into drives
automatically by specifying a changer. This is useful for larger tape
libraries. Choosing a drive is done by using the drive that has not
been used the longest.
At the moment, this patch implements the functionality for automatic
loading both over the API and using the proxmox-backup CLI tool, as
well as in the web UI when selecting a changer. A second patch will
add the same functionality when configuring backup jobs.
Partially fixes #3351
Changes since v1:
* Improved commit messages
* Applied rustfmt / pve-eslint correctly everywhere
* Rebased to the latest changes from master
* Restructured some functions to improve code readability
* Renamed some structs to make it clear what they do (note: the
underlying file name is still generic to use it for other
tape-related features that serialize states in the future)
proxmox:
Laurențiu Leahu-Vlăducu (1):
pbs-api-types: Added changer schema for automatic drive assignment
pbs-api-types/src/tape/changer.rs | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
proxmox-backup:
Laurențiu Leahu-Vlăducu (2):
proxmox-backup-api/proxy: Add proxmox-product-config as dependency
Automatically select a drive (if part of a changer) when loading tapes
Cargo.toml | 2 +
src/api2/tape/changer.rs | 131 +++++++++++++++++++++++++++++++-
src/bin/proxmox-backup-api.rs | 2 +
src/bin/proxmox-backup-proxy.rs | 4 +-
src/bin/proxmox-tape.rs | 48 ++++++++++--
src/tape/changer/mod.rs | 23 +++++-
src/tape/drive/virtual_tape.rs | 8 +-
src/tape/drive_info.rs | 56 ++++++++++++++
src/tape/mod.rs | 1 +
src/tools/mod.rs | 9 +++
www/tape/ChangerStatus.js | 15 +++-
11 files changed, 281 insertions(+), 18 deletions(-)
create mode 100644 src/tape/drive_info.rs
--
2.39.5
_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
next reply other threads:[~2025-02-06 12:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-06 12:28 Laurențiu Leahu-Vlăducu [this message]
2025-02-06 12:28 ` [pbs-devel] [PATCH proxmox v2 1/1] pbs-api-types: Added changer schema for automatic drive assignment Laurențiu Leahu-Vlăducu
2025-02-06 12:28 ` [pbs-devel] [PATCH proxmox-backup v2 1/2] proxmox-backup-api/proxy: Add proxmox-product-config as dependency Laurențiu Leahu-Vlăducu
2025-02-17 11:49 ` Dominik Csapak
2025-02-06 12:28 ` [pbs-devel] [PATCH proxmox-backup v2 2/2] Automatically select a drive (if part of a changer) when loading tapes Laurențiu Leahu-Vlăducu
2025-02-17 11:49 ` 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=20250206122833.171965-1-l.leahu-vladucu@proxmox.com \
--to=l.leahu-vladucu@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
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal