chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] extras multipath update
[elogind.git]
/
extras
/
multipath
/
main.h
diff --git
a/extras/multipath/main.h
b/extras/multipath/main.h
index 0c5620ff74c0acc01c8fc1dc69df90180f2d8c94..3941c32e7c0f884d00146b3168c7da6e964dd4bb 100644
(file)
--- a/
extras/multipath/main.h
+++ b/
extras/multipath/main.h
@@
-48,6
+48,10
@@
#define BLKGETSIZE _IO(0x12,96)
#define DM_TARGET "multipath"
#define BLKGETSIZE _IO(0x12,96)
#define DM_TARGET "multipath"
+/* Storage controlers cpabilities */
+#define FAILOVER 0
+#define MULTIBUS 1
+
#define PINDEX(x,y) mp[(x)].pindex[(y)]
/* global types */
#define PINDEX(x,y) mp[(x)].pindex[(y)]
/* global types */
@@
-80,16
+84,17
@@
struct path {
char sg_dev[FILE_NAME_SIZE];
struct scsi_idlun scsi_id;
struct sg_id sg_id;
char sg_dev[FILE_NAME_SIZE];
struct scsi_idlun scsi_id;
struct sg_id sg_id;
- int state;
char wwid[WWID_SIZE];
char vendor_id[8];
char product_id[16];
char rev[4];
char wwid[WWID_SIZE];
char vendor_id[8];
char product_id[16];
char rev[4];
+ int iopolicy;
};
struct multipath {
char wwid[WWID_SIZE];
int npaths;
};
struct multipath {
char wwid[WWID_SIZE];
int npaths;
+ long size;
int pindex[MAX_MP_PATHS];
};
int pindex[MAX_MP_PATHS];
};
@@
-98,6
+103,7
@@
struct env {
int verbose;
int quiet;
int dry_run;
int verbose;
int quiet;
int dry_run;
+ int forcedfailover;
int with_sysfs;
int dm_path_test_int;
char sysfs_path[FILE_NAME_SIZE];
int with_sysfs;
int dm_path_test_int;
char sysfs_path[FILE_NAME_SIZE];