[pbs-devel] [PATCH proxmox-backup 3/3] tape: handle PEWZ like regular early warning
Dominik Csapak
d.csapak at proxmox.com
Mon Jun 10 13:45:05 CEST 2024
as a safeguard, should the disabling not work for some reason.
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
pbs-tape/src/sg_tape.rs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/pbs-tape/src/sg_tape.rs b/pbs-tape/src/sg_tape.rs
index 96cd3ed8..60537203 100644
--- a/pbs-tape/src/sg_tape.rs
+++ b/pbs-tape/src/sg_tape.rs
@@ -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}");
--
2.39.2
More information about the pbs-devel
mailing list