summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2008-06-12 10:13:29 +1000
committerNeil Brown <neilb@suse.de>2008-06-12 10:13:29 +1000
commit6c3fb95c44ffc36df4048db86231521146417223 (patch)
treea718630739a8294af5df59d30cd15e36a425232e /mdadm.h
parent57632f4afb3588465454187ca6ab66ffb200b677 (diff)
downloadmdadm-6c3fb95c44ffc36df4048db86231521146417223.tar.gz
mdadm-6c3fb95c44ffc36df4048db86231521146417223.tar.xz
mdadm-6c3fb95c44ffc36df4048db86231521146417223.zip
Support adding a spare to a degraded array.
When signalled by the monitor, the manager will find spares and add them to the array and initiate a recovery.
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/mdadm.h b/mdadm.h
index b97cd51..79ec5e2 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -438,6 +438,15 @@ extern struct superswitch {
void (*process_update)(struct supertype *st,
struct metadata_update *update);
+ /* activate_spare will check if the array is degraded and, if it
+ * is, try to find some spare space in the container.
+ * On success, it add appropriate updates (For process_update) to
+ * to the 'updates' list and returns a list of 'mdinfo' identifying
+ * the device, or devices as there might be multiple missing
+ * devices and multiple spares available.
+ */
+ struct mdinfo *(*activate_spare)(struct active_array *a,
+ struct metadata_update **updates);
int major;
int swapuuid; /* true if uuid is bigending rather than hostendian */