]> git.proxmox.com Git - proxmox-backup.git/commit
pbs-tape: sgutils2: check sense data when status is 'CHECK_CONDITION'
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 21 Apr 2022 07:34:36 +0000 (09:34 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 21 Apr 2022 07:35:52 +0000 (09:35 +0200)
commiteb1cd24e2174e5ee3e06580ee4558b4e698cd380
treeaac01717d4f586fc4b4ea2860a2e5a47440ef67e
parent6da20161f0ed8bf130523298571c0eed9a4a838c
pbs-tape: sgutils2: check sense data when status is 'CHECK_CONDITION'

Some raid controllers return a 'transport error' when we expected a
'sense error'. it seems the correct way to check the sense data is when
either the result category is 'SENSE' or when the status is 'CHECK_CONDITION',
so do that. (similar to how 'sg_raw' returns the errors)

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