From: NeilBrown Date: Fri, 17 Jul 2015 01:57:30 +0000 (+1000) Subject: md: set MD_RECOVERY_RECOVER when starting a degraded array. X-Git-Tag: omap-for-v4.3/fixes-rc1~84^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4a3d26d8757a30ae21724d8b0d79e00e113c38d;p=pandora-kernel.git md: set MD_RECOVERY_RECOVER when starting a degraded array. This ensures that 'sync_action' will show 'recover' immediately the array is started. If there is no spare the status will change to 'idle' once that is detected. Clear MD_RECOVERY_RECOVER for a read-only array to ensure this change happens. This allows scripts which monitor status not to get confused - particularly my test scripts. Signed-off-by: NeilBrown --- Reading git-diff-tree failed