Retry a command when we get a command aborted message for it.
authorbriggs <briggs@openbsd.org>
Sun, 14 Jan 1996 21:34:43 +0000 (21:34 +0000)
committerbriggs <briggs@openbsd.org>
Sun, 14 Jan 1996 21:34:43 +0000 (21:34 +0000)
This might be a transient error.  Do complain about it, though.

sys/scsi/scsi_base.c

index 7a61c55..05a95a9 100644 (file)
@@ -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);
                                }