[typo] s/controler/controller/g
[platform/upstream/multipath-tools.git] / libmultipath / pgpolicies.h
1 #ifndef _PGPOLICIES_H
2 #define _PGPOLICIES_H
3
4 #if 0
5 #ifndef _MAIN_H
6 #include "main.h"
7 #endif
8 #endif
9
10 #define POLICY_NAME_SIZE 32
11
12 /* Storage controllers capabilities */
13 enum iopolicies { 
14         IOPOLICY_UNDEF,
15         FAILOVER,
16         MULTIBUS,
17         GROUP_BY_SERIAL,
18         GROUP_BY_PRIO,
19         GROUP_BY_NODE_NAME
20 };
21
22 int get_pgpolicy_id(char *);
23 int get_pgpolicy_name (char *, int, int);
24
25 /*
26  * policies
27  */
28 int one_path_per_group(struct multipath *);
29 int one_group(struct multipath *);
30 int group_by_serial(struct multipath *);
31 int group_by_prio(struct multipath *);
32 int group_by_node_name(struct multipath *);
33
34 #endif