mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
[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 <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
1cd6bf19bb
commit
b325a32e57
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue