From bad9af954acf3a0b92a5c4feb80d626598f3a49e Mon Sep 17 00:00:00 2001 From: briggs Date: Sun, 14 Jan 1996 21:34:43 +0000 Subject: [PATCH] Retry a command when we get a command aborted message for it. This might be a transient error. Do complain about it, though. --- sys/scsi/scsi_base.c | 6 ++++++ 1 file changed, 6 insertions(+) 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); } -- 2.20.1