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 --- super0.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'super0.c') diff --git a/super0.c b/super0.c index f791e9d7..3061ecfe 100644 --- a/super0.c +++ b/super0.c @@ -387,6 +387,8 @@ static void getinfo_super0(struct supertype *st, struct mdinfo *info, char *map) } else info->reshape_active = 0; + info->recovery_blocked = info->reshape_active; + sprintf(info->name, "%d", sb->md_minor); /* work_disks is calculated rather than read directly */ for (i=0; i < MD_SB_DISKS; i++) -- cgit v1.2.3