summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2008-05-27 09:18:38 +1000
committerNeil Brown <neilb@suse.de>2008-05-27 09:18:38 +1000
commit7a7cc50430d0d99dfe9b802e9723537360abf9d9 (patch)
tree839119e8ab5d6856716b030b2aaf9563b87c3d0e /mdadm.h
parent4e5528c6f7b66f40617dabb232bc6c016bb86204 (diff)
downloadmdadm-7a7cc50430d0d99dfe9b802e9723537360abf9d9.tar.gz
mdadm-7a7cc50430d0d99dfe9b802e9723537360abf9d9.tar.xz
mdadm-7a7cc50430d0d99dfe9b802e9723537360abf9d9.zip
Set status of devices in ddf.
Might work a little bit....
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/mdadm.h b/mdadm.h
index 9dacdc4..5ff66cd 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -421,6 +421,14 @@ extern struct superswitch {
* write to an array with redundancy is allowed.
*/
void (*mark_clean)(struct active_array *a, unsigned long long sync_pos);
+
+ /* When the state of a device might have changed, we call set_disk to
+ * tell the metadata what the current state is.
+ * Typically this happens on spare->in_sync and (spare|in_sync)->faulty
+ * transitions.
+ * set_disk might be called when the state of the particular disk has
+ * not in fact changed.
+ */
void (*set_disk)(struct active_array *a, int n, int state);
void (*sync_metadata)(struct active_array *a);