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;
82 enum devtypes dev_type;
91 int user_friendly_names;
92 int bindings_read_only;
96 int queue_without_daemon;
99 int flush_on_last_del;
102 unsigned int dev_loss;
115 char * multipath_dir;
117 char * uid_attribute;
120 char * bindings_file;
125 unsigned char * reservation_key;
131 vector blist_devnode;
134 vector elist_devnode;
139 struct config * conf;
141 struct hwentry * find_hwe (vector hwtable, char * vendor, char * product, char *revision);
142 struct mpentry * find_mpe (char * wwid);
143 char * get_mpe_wwid (char * alias);
145 struct hwentry * alloc_hwe (void);
146 struct mpentry * alloc_mpe (void);
148 void free_hwe (struct hwentry * hwe);
149 void free_hwtable (vector hwtable);
150 void free_mpe (struct mpentry * mpe);
151 void free_mptable (vector mptable);
153 int store_hwe (vector hwtable, struct hwentry *);
155 int load_config (char * file);
156 struct config * alloc_config (void);
157 void free_config (struct config * conf);