7 #define ORIGIN_DEFAULT 0
8 #define ORIGIN_CONFIG 1
11 * In kernel, fast_io_fail == 0 means immediate failure on rport delete.
12 * OTOH '0' means not-configured in various places in multipath-tools.
14 #define MP_FAST_IO_FAIL_OFF (-1)
15 #define MP_FAST_IO_FAIL_ZERO (-2)
44 int flush_on_last_del;
46 unsigned int dev_loss;
59 unsigned char * reservation_key;
67 int flush_on_last_del;
81 enum devtypes dev_type;
90 int user_friendly_names;
91 int bindings_read_only;
95 int queue_without_daemon;
98 int flush_on_last_del;
101 unsigned int dev_loss;
112 char * multipath_dir;
114 char * uid_attribute;
117 char * bindings_file;
122 unsigned char * reservation_key;
128 vector blist_devnode;
131 vector elist_devnode;
136 struct config * conf;
138 struct hwentry * find_hwe (vector hwtable, char * vendor, char * product, char *revision);
139 struct mpentry * find_mpe (char * wwid);
140 char * get_mpe_wwid (char * alias);
142 struct hwentry * alloc_hwe (void);
143 struct mpentry * alloc_mpe (void);
145 void free_hwe (struct hwentry * hwe);
146 void free_hwtable (vector hwtable);
147 void free_mpe (struct mpentry * mpe);
148 void free_mptable (vector mptable);
150 int store_hwe (vector hwtable, struct hwentry *);
152 int load_config (char * file);
153 struct config * alloc_config (void);
154 void free_config (struct config * conf);