On 05/31/2017 06:46 AM, Tomasz Majchrzak wrote:
Recent commit has changed the way failed disks are counted. It breaks recovery for external metadata arrays as failed disks are not part of the array and have no corresponding entries is sysfs (they are only reported for containers) so degraded arrays show no failed disks. Recent commit overwrites GET_DEGRADED result prior to GET_STATE and it is not set again if GET_STATE has not been requested. As GET_STATE provides the same information as GET_DEGRADED, the latter is not needed anymore. Remove GET_DEGRADED option and replace it with GET_STATE option. Don't count number of failed disks looking at sysfs entries but calculate it at the end. Do it only for arrays as containers report no disks, just spares. Signed-off-by: Tomasz Majchrzak <tomasz.majchrzak@xxxxxxxxx> --- Incremental.c | 14 ++++---------- Monitor.c | 4 ++-- managemon.c | 4 ++-- mdadm.h | 1 - raid6check.c | 2 +- sysfs.c | 18 ++++++++---------- 6 files changed, 17 insertions(+), 26 deletions(-) v2: adapted to apply to latest upstream version
Applied! Thanks, Jes -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html