summaryrefslogtreecommitdiff
path: root/libmultipath/prio.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmultipath/prio.h')
-rw-r--r--libmultipath/prio.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/libmultipath/prio.h b/libmultipath/prio.h
index fc9277f..fd4a326 100644
--- a/libmultipath/prio.h
+++ b/libmultipath/prio.h
@@ -11,6 +11,7 @@
#include "memory.h"
#define DEFAULT_PRIO "const"
+#define DEFAULT_PRIO_ARGS ""
/*
* Known prioritizers for use in hwtable.c
@@ -23,6 +24,7 @@
#define PRIO_NETAPP "netapp"
#define PRIO_RANDOM "random"
#define PRIO_RDAC "rdac"
+#define PRIO_DATACORE "datacore"
/*
* Value used to mark the fact prio was not defined
@@ -34,11 +36,13 @@
*/
#define LIB_PRIO_NAMELEN 255
#define PRIO_NAME_LEN 16
+#define PRIO_ARGS_LEN 255
struct prio {
struct list_head node;
char name[PRIO_NAME_LEN];
- int (*getprio)(struct path *);
+ char args[PRIO_ARGS_LEN];
+ int (*getprio)(struct path *, char *);
};
int init_prio (void);
@@ -47,5 +51,7 @@ struct prio * add_prio (char *);
struct prio * prio_lookup (char *);
int prio_getprio (struct prio *, struct path *);
char * prio_name (struct prio *);
+char * prio_args (struct prio *);
+int prio_set_args (struct prio *, char *);
#endif /* _PRIO_H */