public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: "Laurențiu Leahu-Vlăducu" <l.leahu-vladucu@proxmox.com>
To: pbs-devel@lists.proxmox.com
Cc: "Laurențiu Leahu-Vlăducu" <l.leahu-vladucu@proxmox.com>
Subject: [pbs-devel] [PATCH proxmox-backup] Automatically select a drive (if part of a changer) when loading tapes
Date: Thu, 16 Jan 2025 12:48:28 +0100	[thread overview]
Message-ID: <20250116114829.142844-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


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



_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel

             reply	other threads:[~2025-01-16 11:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-16 11:48 Laurențiu Leahu-Vlăducu [this message]
2025-01-16 11:51 Laurențiu Leahu-Vlăducu

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=20250116114829.142844-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