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:
parent
b7a6c5da06
commit
a3e79113cf
@ -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}");
|
||||
|
Loading…
Reference in New Issue
Block a user