From 18cb44962d1128ac5fc8f6922c591c0666b6de98 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Thu, 10 Mar 2011 18:14:43 +1100 Subject: [PATCH] ddf: Failed should suppress Online and others. so the notes say, so make it so. Signed-off-by: NeilBrown --- super-ddf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/super-ddf.c b/super-ddf.c index 35515c4..5f7a193 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -1158,6 +1158,9 @@ static void examine_pds(struct ddf_super *sb) (type&8) ? "spare" : "", (type&16)? ", foreign" : "", (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", (state&1)? "Online": "Offline", (state&2)? ", Failed": "",