summaryrefslogtreecommitdiff
path: root/mdadm.h
diff options
context:
space:
mode:
authorAdam Kwolek <adam.kwolek@intel.com>2011-10-05 13:30:50 +1100
committerNeilBrown <neilb@suse.de>2011-10-05 13:30:50 +1100
commit6e75048bc5121a3db33896b628683cdf7dc0d773 (patch)
tree1c2b9eb57b8b1bbfc7e30c6a382c4cc82d6ecdf6 /mdadm.h
parentcc7f63e55319b5c372af20ce528e7e7230746d92 (diff)
Add recovery blocked field to mdinfo
When container is assembled while reshape is active on one of its member whole container can be required to be blocked from monitoring. For such purpose field recovery blocked is added to mdinfo structure. When metadata handler finds active reshape in container it should set recovery_blocked field to disable whole container monitoring during reshape. For arrays that doesn't use containers, recovery_blocked field has the same value as reshape_active field e.g. super0/1. In fact,recovery is blocked during reshape for such arrays. For ddf, metadata handler doesn't set reshape_active field, so recovery_blocked is not set also. Signed-off-by: Adam Kwolek <adam.kwolek@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/mdadm.h b/mdadm.h
index f219c959..c397045f 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -196,6 +196,13 @@ struct mdinfo {
*/
int reshape_active;
unsigned long long reshape_progress;
+ int recovery_blocked; /* for external metadata it
+ * indicates that there is
+ * reshape in progress in
+ * container,
+ * for native metadata it is
+ * reshape_active field mirror
+ */
union {
unsigned long long resync_start; /* per-array resync position */
unsigned long long recovery_start; /* per-device rebuild position */