提交 b325a32e 编写于 作者: N NeilBrown 提交者: 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: NNeil Brown <neilb@suse.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 1cd6bf19
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册