summaryrefslogtreecommitdiff
path: root/libmultipath/pgpolicies.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmultipath/pgpolicies.h')
-rw-r--r--libmultipath/pgpolicies.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/libmultipath/pgpolicies.h b/libmultipath/pgpolicies.h
new file mode 100644
index 0000000..e0a1c65
--- /dev/null
+++ b/libmultipath/pgpolicies.h
@@ -0,0 +1,34 @@
+#ifndef _PGPOLICIES_H
+#define _PGPOLICIES_H
+
+#if 0
+#ifndef _MAIN_H
+#include "main.h"
+#endif
+#endif
+
+#define POLICY_NAME_SIZE 32
+
+/* Storage controlers capabilities */
+enum iopolicies {
+ IOPOLICY_RESERVED,
+ FAILOVER,
+ MULTIBUS,
+ GROUP_BY_SERIAL,
+ GROUP_BY_PRIO,
+ GROUP_BY_NODE_NAME
+};
+
+int get_pgpolicy_id(char *);
+void get_pgpolicy_name (char *, 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