From 4fe903aa8b65f9a66d00a54d114c9a10ccdf21b0 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Tue, 6 May 2014 11:29:49 +1000 Subject: [PATCH] DDF: DDF_Missing devices should not be reported as 'working' by getinfo_super_ddf Signed-off-by: NeilBrown --- super-ddf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/super-ddf.c b/super-ddf.c index da45be9..5a07c46 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -2014,7 +2014,8 @@ static void getinfo_super_ddf(struct supertype *st, struct mdinfo *info, char *m if (info->disk.raid_disk >= 0) pde = ddf->phys->entries + info->disk.raid_disk; if (pde && - !(be16_to_cpu(pde->state) & DDF_Failed)) + !(be16_to_cpu(pde->state) & DDF_Failed) && + !(be16_to_cpu(pde->state) & DDF_Missing)) info->disk.state = (1 << MD_DISK_SYNC) | (1 << MD_DISK_ACTIVE); else info->disk.state = 1 << MD_DISK_FAULTY;