summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/mdadm.h b/mdadm.h
index a020ad9..beadaf9 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -295,6 +295,16 @@ enum domain_actions {
#define action(domain) ((domain)->action & action_mask)
#define force(domain) ((domain)->action & force)
+struct domain_ent;
+
+extern struct partition_handler {
+ char *match; /* string we match in mdadm.conf */
+ int (*check_partition)(int dfd, int verbose, int export,
+ struct domain_ent *domain);
+ int (*write_partition)(int dfd, int verbose, int export,
+ struct domain_ent *domain);
+} *partition_list[];
+
struct domain_ent {
char *spare_group; /* only set this in monitor mode
when we know what arrays we