summaryrefslogtreecommitdiff
path: root/libmultipath/pgpolicies.h
blob: 1f010a3e4fc8c3fdb798f311ae10ccd05bf052e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef _PGPOLICIES_H
#define _PGPOLICIES_H

#if 0
#ifndef _MAIN_H
#include "main.h"
#endif
#endif

#define POLICY_NAME_SIZE 32

/* Storage controllers capabilities */
enum iopolicies { 
	IOPOLICY_UNDEF,
	FAILOVER,
	MULTIBUS,
	GROUP_BY_SERIAL,
	GROUP_BY_PRIO,
	GROUP_BY_NODE_NAME
};

int get_pgpolicy_id(char *);
int get_pgpolicy_name (char *, int, int);

/*
 * policies
 */
int one_path_per_group(struct multipath *);
int one_group(struct multipath *);
int group_by_serial(struct multipath *);
int group_by_prio(struct multipath *);
int group_by_node_name(struct multipath *);

#endif