diff options
author | briggs <briggs@cvs.openbsd.org> | 1996-01-14 21:34:44 +0000 |
---|---|---|
committer | briggs <briggs@cvs.openbsd.org> | 1996-01-14 21:34:44 +0000 |
commit | 0fb02d5a856594b81d3674e5f3647302ff3689e5 (patch) | |
tree | e204162fa6fc74c0dac9399980b6c087b55f5224 /sys/scsi | |
parent | 5cf1a72c8191c946ec8c129d1d622ff722abddf1 (diff) |
Retry a command when we get a command aborted message for it.
This might be a transient error. Do complain about it, though.
Diffstat (limited to 'sys/scsi')
-rw-r--r-- | sys/scsi/scsi_base.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c index 7a61c55237f..05a95a99ca0 100644 --- a/sys/scsi/scsi_base.c +++ b/sys/scsi/scsi_base.c @@ -680,6 +680,9 @@ scsi_interpret_sense(xs) case 0x8: /* BLANK CHECK */ error = 0; break; + case 0xa: /* COMMAND ABORTED */ + error = ERESTART; + break; case 0xd: /* VOLUME OVERFLOW */ error = ENOSPC; break; @@ -702,6 +705,9 @@ scsi_interpret_sense(xs) printf(", requested size: %d (decimal)", info); break; + case 0xa: /* COMMAND ABORTED */ + printf(", cmd %x, attempting retry", + xs->cmd->opcode); default: printf(", info = %d (decimal)", info); } |