ddf: Failed should suppress Online and others.
so the notes say, so make it so. Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
d6508f0cfb
commit
18cb44962d
|
@ -1158,6 +1158,9 @@ static void examine_pds(struct ddf_super *sb)
|
||||||
(type&8) ? "spare" : "",
|
(type&8) ? "spare" : "",
|
||||||
(type&16)? ", foreign" : "",
|
(type&16)? ", foreign" : "",
|
||||||
(type&32)? "pass-through" : "");
|
(type&32)? "pass-through" : "");
|
||||||
|
if (state & DDF_Failed)
|
||||||
|
/* This over-rides these three */
|
||||||
|
state &= ~(DDF_Online|DDF_Rebuilding|DDF_Transition);
|
||||||
printf("/%s%s%s%s%s%s%s",
|
printf("/%s%s%s%s%s%s%s",
|
||||||
(state&1)? "Online": "Offline",
|
(state&1)? "Online": "Offline",
|
||||||
(state&2)? ", Failed": "",
|
(state&2)? ", Failed": "",
|
||||||
|
|
Loading…
Reference in New Issue