multipathd: fix reservation_key check
[multipath-tools/.git] / libmultipath / sg_include.h
1 #define __user
2 #include <scsi/sg.h>
3
4 #ifndef DID_OK
5 #define DID_OK          0x00    /* NO error                                */
6 #define DID_NO_CONNECT  0x01    /* Couldn't connect before timeout period  */
7 #define DID_BUS_BUSY    0x02    /* BUS stayed busy through time out period */
8 #define DID_TIME_OUT    0x03    /* TIMED OUT for other reason              */
9 #define DID_BAD_TARGET  0x04    /* BAD target.                             */
10 #define DID_ABORT       0x05    /* Told to abort for some other reason     */
11 #define DID_PARITY      0x06    /* Parity error                            */
12 #define DID_ERROR       0x07    /* Internal error                          */
13 #define DID_RESET       0x08    /* Reset by somebody.                      */
14 #define DID_BAD_INTR    0x09    /* Got an interrupt we weren't expecting.  */
15 #define DID_PASSTHROUGH 0x0a    /* Force command past mid-layer            */
16 #define DID_SOFT_ERROR  0x0b    /* The low level driver just wish a retry  */
17 #define DID_IMM_RETRY   0x0c    /* Retry without decrementing retry count  */
18 #define DID_REQUEUE     0x0d    /* Requeue command (no immediate retry) also
19                                  * without decrementing the retry count    */
20 #define DID_TRANSPORT_DISRUPTED 0x0e /* Transport error disrupted execution
21                                       * and the driver blocked the port to
22                                       * recover the link. Transport class will
23                                       * retry or fail IO */
24 #define DID_TRANSPORT_FAILFAST  0x0f /* Transport class fastfailed the io */
25 #endif