summaryrefslogtreecommitdiff
path: root/extras/multipath/devinfo.h
blob: 53f24730271544f46edd9c95b4694419cd34afaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#define INQUIRY_CMDLEN  6
#define INQUIRY_CMD     0x12
#define SENSE_BUFF_LEN  32
#define DEF_TIMEOUT     60000
#define RECOVERED_ERROR 0x01
#define MX_ALLOC_LEN    255
#define WWID_SIZE       33
#define BLKGETSIZE      _IO(0x12,96)

/* exerpt from "sg_err.h" */
#define SCSI_CHECK_CONDITION    0x2
#define SCSI_COMMAND_TERMINATED 0x22
#define SG_ERR_DRIVER_SENSE     0x08

void basename (char *, char *);
int get_serial (char *, char *);
int get_lun_strings (char *, char *, char *, char *);
int get_evpd_wwid(char *, char *);
long get_disk_size (char *);