[pbs-devel] [PATCH proxmox-backup] tape: fix read element status for some changers

Dominik Csapak d.csapak at proxmox.com
Tue Sep 3 08:55:40 CEST 2024


On 9/3/24 07:26, Dietmar Maurer wrote:
>> It seems some changers are setting the PVolTag/AVolTag flags in the
>> ELEMENT STATUS page response, but don't include the actual fields then.
>> To make it work with such changers, downgrade the errors to warnings, so
>> we can continue to decode the remaining data.
> 
> cant we simply check if there is remaining data in the reader?


yes we could, but we have to do it outside the functions, because
we don't have access to the reader there, only to something that
implements `read`

should i send a patch that checks the remaining size beforehand?




More information about the pbs-devel mailing list