diff options
author | Neil Brown <neilb@suse.de> | 2008-05-27 09:18:38 +1000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2008-05-27 09:18:38 +1000 |
commit | 7a7cc50430d0d99dfe9b802e9723537360abf9d9 (patch) | |
tree | 839119e8ab5d6856716b030b2aaf9563b87c3d0e /mdadm.h | |
parent | 4e5528c6f7b66f40617dabb232bc6c016bb86204 (diff) | |
download | mdadm-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.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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); |