]> git.proxmox.com Git - proxmox-backup.git/commit
tape: work around buggy changer implementations
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 13 Dec 2023 09:00:26 +0000 (10:00 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 22 Dec 2023 08:14:37 +0000 (09:14 +0100)
commitd3b934d40561a019dd0220229bff6db30b5f987a
tree406ccd8c4597799b88eeaf6cb098887a6c0d3551
parentfee9454998b6148bc9b54bde92b08ef9db271bec
tape: work around buggy changer implementations

allocation length for read element status is a 3 byte field, but it
seems some changers only look at the bottom two bytes. Since we used
0x010000 for it, those changers did not return any data and the calls
failed.

To work around it, request one byte less (0xFFFF) which should still be
enough for the data, but should now work with those buggy
implementations.

Reported by a user in the forum: https://forum.proxmox.com/threads/137391/

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