]> git.proxmox.com Git - proxmox-backup.git/commit
fix #4904: tape changer: add option to eject before unload
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 7 Dec 2023 12:51:02 +0000 (13:51 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 12 Dec 2023 13:36:19 +0000 (14:36 +0100)
commit66402cdc1b65f94556d4f4c0b443167779b62855
tree519b015b88454b0c2c3041829556b59fc1854228
parentd555c3839b9eb6ada6cfe37d60c98bcc6bda63c0
fix #4904: tape changer: add option to eject before unload

some tape libraries need the tape being ejected from the drive before
doing an unload. Since we cannot easily detect if that's the case,
introduce an 'eject_before_unload' option.

Instead of just adding a bool flag to the config, add a new 'options'
property string where we can put such niche options similar to how we
handle the datastore tuning options.

Extend the LtoTapeHandle with 'medium_present' which just uses a
TEST UNIT READY command to check for present medium, so we don't
try to eject an already ejected tape.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
pbs-api-types/src/tape/changer.rs
src/api2/config/changer.rs
src/bin/proxmox_tape/changer.rs
src/tape/changer/mod.rs
src/tape/drive/lto/mod.rs