[pbs-devel] applied: [PATCH proxmox-backup v2] tape: changer: sg_pt: query element types separately

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Jul 12 18:20:21 CEST 2021


On 12.07.21 17:48, Dietmar Maurer wrote:
> From: Dominik Csapak <d.csapak at proxmox.com>
> 
> 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 at proxmox.com>
> Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
> ---
>  src/tape/changer/sg_pt_changer.rs | 112 +++++++++++++++++++++---------
>  1 file changed, 80 insertions(+), 32 deletions(-)
> 
>

applied, thanks!





More information about the pbs-devel mailing list