diff options
author | NeilBrown <neilb@suse.de> | 2014-05-06 03:29:49 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2014-05-21 03:54:48 +0200 |
commit | 4fe903aa8b65f9a66d00a54d114c9a10ccdf21b0 (patch) | |
tree | 6a39d9125ab76a02cfa552abb1a43cf1e4da238d /super-ddf.c | |
parent | DDF: remove old and wrong comment about settinig raid_disk. (diff) | |
download | mdadm-4fe903aa8b65f9a66d00a54d114c9a10ccdf21b0.tar.xz mdadm-4fe903aa8b65f9a66d00a54d114c9a10ccdf21b0.zip |
DDF: DDF_Missing devices should not be reported as 'working' by getinfo_super_ddf
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super-ddf.c')
-rw-r--r-- | super-ddf.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |