From 6e75048bc5121a3db33896b628683cdf7dc0d773 Mon Sep 17 00:00:00 2001 From: Adam Kwolek Date: Wed, 5 Oct 2011 13:30:50 +1100 Subject: 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 Signed-off-by: NeilBrown --- mdadm.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'mdadm.h') 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 */ -- cgit v1.2.3