File: pgpolicies.h

package info (click to toggle)
multipath-tools 0.14.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,088 kB
  • sloc: ansic: 64,885; perl: 1,622; makefile: 742; sh: 732; pascal: 155
file content (30 lines) | stat: -rw-r--r-- 684 bytes parent folder | download | duplicates (2)
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
#ifndef PGPOLICIES_H_INCLUDED
#define PGPOLICIES_H_INCLUDED

#define POLICY_NAME_SIZE 32

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

int get_pgpolicy_id(char *);
const char *get_pgpolicy_name (int);
int group_paths(struct multipath *, int);
/*
 * policies
 */
int one_path_per_group(struct multipath *, vector);
int one_group(struct multipath *, vector);
int group_by_serial(struct multipath *, vector);
int group_by_prio(struct multipath *, vector);
int group_by_node_name(struct multipath *, vector);
int group_by_tpg(struct multipath *, vector);

#endif