summaryrefslogtreecommitdiff
path: root/mdadm.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-11-28 15:15:30 +1100
committerNeilBrown <neilb@suse.de>2013-11-28 15:15:30 +1100
commit9ca39acb3e8bc31811e463d19fae81c5501aea65 (patch)
tree6b00343e8d70fd33f95d838499b24a93c971704e /mdadm.h
parentc1736844ba49ec1a8731b5815abfd6530b982a3b (diff)
Incremental: add --export handling.
If --export is given with --incremental, then MD_DEVNAME is output which gives the name of the device (in /dev/md) that is the array (or container) that the device would be added to. Also MD_STARTED is set to one of no unsafe yes nothing to indicate if the array was started. IF MD_STARTED=unsafe then it may be appropriate to run mdadm -R /dev/md/$MD_DEVNAME after a timeout to ensure newly degraded array are started. If MD_FOREIGN=yes it might be appropriate to suppress this as the array is probably not critical. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/mdadm.h b/mdadm.h
index 7cfdd8fd..c38fdfb9 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -1331,7 +1331,11 @@ extern void append_metadata_update(struct supertype *st, void *buf, int len);
extern int assemble_container_content(struct supertype *st, int mdfd,
struct mdinfo *content,
struct context *c,
- char *chosen_name);
+ char *chosen_name, int *result);
+#define INCR_NO 1
+#define INCR_UNSAFE 2
+#define INCR_ALREADY 4
+#define INCR_YES 8
extern struct mdinfo *container_choose_spares(struct supertype *st,
unsigned long long min_size,
struct domainlist *domlist,