Commit b325a32e authored by NeilBrown's avatar NeilBrown Committed by Linus Torvalds

[PATCH] md: report spare drives in /proc/mdstat

Just like failed drives have (F), so spare drives now have (S).
Signed-off-by: default avatarNeil Brown <neilb@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 1cd6bf19
...@@ -3334,7 +3334,8 @@ static int md_seq_show(struct seq_file *seq, void *v) ...@@ -3334,7 +3334,8 @@ static int md_seq_show(struct seq_file *seq, void *v)
if (rdev->faulty) { if (rdev->faulty) {
seq_printf(seq, "(F)"); seq_printf(seq, "(F)");
continue; continue;
} } else if (rdev->raid_disk < 0)
seq_printf(seq, "(S)"); /* spare */
size += rdev->size; size += rdev->size;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment