Skip to content

Commit

Permalink
[PATCH] md: report spare drives in /proc/mdstat
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
NeilBrown authored and Linus Torvalds committed Sep 9, 2005
1 parent 1cd6bf1 commit b325a32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b325a32

Please sign in to comment.