[pbs-devel] [PATCH proxmox-backup] Automatically select a drive (if part of a changer) when loading tapes
Laurențiu Leahu-Vlăducu
l.leahu-vladucu at proxmox.com
Thu Jan 16 12:51:08 CET 2025
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
Laurențiu Leahu-Vlăducu (1):
Automatically select a drive (if part of a changer) when loading tapes
Cargo.toml | 2 +
pbs-api-types/src/tape/changer.rs | 14 +++-
src/api2/tape/changer.rs | 117 +++++++++++++++++++++++++++++-
src/bin/proxmox-backup-api.rs | 2 +
src/bin/proxmox-backup-proxy.rs | 2 +
src/bin/proxmox-tape.rs | 50 +++++++++++--
src/tape/changer/mod.rs | 19 ++++-
src/tape/drive/virtual_tape.rs | 8 +-
src/tape/drive_info.rs | 51 +++++++++++++
src/tape/mod.rs | 1 +
src/tools/mod.rs | 7 ++
www/tape/ChangerStatus.js | 16 +++-
12 files changed, 274 insertions(+), 15 deletions(-)
create mode 100644 src/tape/drive_info.rs
--
2.39.5
More information about the pbs-devel
mailing list