]> git.proxmox.com Git - proxmox-backup.git/commit
tape: improve export_media error message for not found tape
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 15 Oct 2021 08:32:59 +0000 (10:32 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 18 Oct 2021 08:40:56 +0000 (10:40 +0200)
commitac2ca6c34199dcc2360eeb673b7052b769b6db5e
tree6c68d140637c15c5f88f1cbfbf0768fc7d62375c
parentd26865c52cffadd9c7a8d3567bd871b9c98c1edf
tape: improve export_media error message for not found tape

'export_media' can handle if the tape is in either a normal slot of the
library, or in the drive assigned to the current pool writer.
(because we need to lock the drive)

if it is, for some reason, in a different drive, the error message
 'media is not online'
could be slightly confusing for a user, since it would appear in the drive list

add the 'or a differen drive' to make it clearer

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/tape/pool_writer/mod.rs