tape: handle PEWZ like regular early warning

as a safeguard, should the disabling not work for some reason.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2024-06-10 13:45:05 +02:00 committed by Dietmar Maurer
parent b7a6c5da06
commit a3e79113cf

View File

@ -626,8 +626,8 @@ impl SgTape {
Err(ScsiError::Sense(SenseInfo {
sense_key: 0,
asc: 0,
ascq: 2,
})) => { /* LEOM - ignore */ }
ascq: 2 | 7,
})) => { /* LEOM or PEWZ - ignore */ }
Err(err) => {
proxmox_lang::io_bail!("write filemark failed - {err}");
}
@ -742,9 +742,9 @@ impl SgTape {
Err(ScsiError::Sense(SenseInfo {
sense_key: 0,
asc: 0,
ascq: 2,
ascq: 2 | 7,
})) => {
Ok(true) // LEOM
Ok(true) // LEOM or PEWZ
}
Err(err) => {
proxmox_lang::io_bail!("write failed - {err}");