proxmox-backup/src/tape
Dominik Csapak 0ed40b19c7 tape: changer: sg_pt: query element types separately
Some changers do not like the DVCID bit when querying non-drives,
this includes when querying 'all' elements.

To circumvent this, we query each type by itself (like mtx does it),
and only add the DVCID bit for drives (Data Transfer Elements).

Reported by a user in the forum:
https://forum.proxmox.com/threads/ibm-3584-ts3500-support.92291/

and limit to 1000 elements per request.
(Because some changers limit that request with the options we set)

instead of checking if the data len was equal to the allocation_len
for getting more data, we count the returned elements and compare
that with the number we requested

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-07-12 18:19:26 +02:00
..
changer tape: changer: sg_pt: query element types separately 2021-07-12 18:19:26 +02:00
drive change tape drive lock path 2021-07-12 17:26:49 +02:00
file_formats cleanup: remove debug println 2021-04-14 10:39:29 +02:00
helpers add pbs-tools subcrate 2021-07-06 15:10:37 +02:00
pool_writer move chunk_store to pbs-datastore 2021-07-07 14:37:47 +02:00
test tape/test: repair tests after changing 'start_write_session' 2021-05-14 10:01:54 +02:00
inventory.rs tape/inventory: add completion helper for tape snapshots 2021-05-11 12:56:55 +02:00
linux_list_drives.rs add pbs-tools subcrate 2021-07-06 15:10:37 +02:00
media_catalog.rs add pbs-tools subcrate 2021-07-06 15:10:37 +02:00
media_pool.rs api2/tape/backup: add 'force-media-set' parameter to manual backup 2021-05-14 08:58:33 +02:00
media_set.rs typo fixes all over the place 2021-03-10 16:39:57 +01:00
mod.rs change tape drive lock path 2021-07-12 17:26:49 +02:00
tape_read.rs TapeRead: add skip_data() 2021-04-13 13:32:45 +02:00
tape_write.rs tape: introduce trait BlockWrite 2021-04-08 07:28:30 +02:00