]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/scsi/scsi.h
[SCSI] Add detailed SCSI I/O errors
[karo-tx-linux.git] / include / scsi / scsi.h
index 648d233580387bb57b584508c748eccee8da9f21..ead8dd054480e6b0fea8b2ae64833e968707a386 100644 (file)
@@ -434,6 +434,10 @@ static inline int scsi_is_wlun(unsigned int lun)
                                      * recover the link. Transport class will
                                      * retry or fail IO */
 #define DID_TRANSPORT_FAILFAST 0x0f /* Transport class fastfailed the io */
+#define DID_TARGET_FAILURE 0x10 /* Permanent target failure, do not retry on
+                                * other paths */
+#define DID_NEXUS_FAILURE 0x11  /* Permanent nexus failure, retry on other
+                                * paths might yield different results */
 #define DRIVER_OK       0x00   /* Driver status                           */
 
 /*
@@ -463,6 +467,7 @@ static inline int scsi_is_wlun(unsigned int lun)
 #define TIMEOUT_ERROR   0x2007
 #define SCSI_RETURN_NOT_HANDLED   0x2008
 #define FAST_IO_FAIL   0x2009
+#define TARGET_ERROR    0x200A
 
 /*
  * Midlevel queue return values.