From: NeilBrown Date: Fri, 9 Sep 2005 23:24:00 +0000 (-0700) Subject: [PATCH] md: report spare drives in /proc/mdstat X-Git-Tag: v2.6.14-rc1~230 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b325a32e5732d7aef70ca3c58acb3953ed20f66c;p=linux-2.6-omap-h63xx.git [PATCH] md: report spare drives in /proc/mdstat Just like failed drives have (F), so spare drives now have (S). Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/md/md.c b/drivers/md/md.c index 0a13016829d..f27e8f644df 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -3334,7 +3334,8 @@ static int md_seq_show(struct seq_file *seq, void *v) if (rdev->faulty) { seq_printf(seq, "(F)"); continue; - } + } else if (rdev->raid_disk < 0) + seq_printf(seq, "(S)"); /* spare */ size += rdev->size; }