mirror of
https://github.com/systemd/systemd.git
synced 2024-10-28 20:25:38 +03:00
09b7985cf6
incremental to udev-016/extras/multipath-0.0.16.3, * add a GROUP_BY_SERIAL flag. This should be useful for controlers that activate their spare paths on simple IO submition with a penalty. The StorageWorks HW defaults to this mode, even if the MULTIBUS mode is OK. * remove unused sg_err.c * big restructuring : split devinfo.c from main.c. Export : * void basename (char *, char *); * int get_serial (int, char *); * int get_lun_strings (char *, char *, char *, char *); * int get_evpd_wwid(char *, char *); * long get_disk_size (char *); Now we see clearly what is expected from an external package like scsi_id. * stop passing struct env as param
20 lines
557 B
C
20 lines
557 B
C
#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 *);
|