1 #define INQUIRY_CMDLEN 6
2 #define INQUIRY_CMD 0x12
3 #define SENSE_BUFF_LEN 32
4 #define DEF_TIMEOUT 60000
5 #define RECOVERED_ERROR 0x01
6 #define MX_ALLOC_LEN 255
8 #define BLKGETSIZE _IO(0x12,96)
10 /* exerpt from "sg_err.h" */
11 #define SCSI_CHECK_CONDITION 0x2
12 #define SCSI_COMMAND_TERMINATED 0x22
13 #define SG_ERR_DRIVER_SENSE 0x08
15 void basename (char *, char *);
16 int get_serial (char *, char *);
17 int get_lun_strings (char *, char *, char *, char *);
18 int get_evpd_wwid(char *, char *);
19 long get_disk_size (char *);