]> git.proxmox.com Git - proxmox-backup.git/commit
tape: changer: sg_pt: make extra scsi request for dvcid
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 15 Jul 2021 11:07:20 +0000 (13:07 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 16 Jul 2021 06:46:06 +0000 (08:46 +0200)
commit6c053ffc896eee4ea386f2ec3f4eb75cbd03bbb8
treea4898532e053590705daed3a73d7da50ca63827b
parent9f5b57a348add161938d8c204c3e1c6562feaf06
tape: changer: sg_pt: make extra scsi request for dvcid

some libraries cannot handle a request with volume tags and DVCID set at
the same time.

So we make 2 separate requests and merge them, since we want to keep
the vendor/model/serial data.

to not overcomplicate the code, add another special type to ElementType

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