From: NeilBrown Date: Tue, 6 May 2014 01:29:49 +0000 (+1000) Subject: DDF: DDF_Missing devices should not be reported as 'working' by getinfo_super_ddf X-Git-Tag: mdadm-3.3.1~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4fe903aa8b65f9a66d00a54d114c9a10ccdf21b0;p=thirdparty%2Fmdadm.git DDF: DDF_Missing devices should not be reported as 'working' by getinfo_super_ddf Signed-off-by: NeilBrown --- diff --git a/super-ddf.c b/super-ddf.c index da45be9c..5a07c46e 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;