projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cd6bf1
)
[PATCH] md: report spare drives in /proc/mdstat
author
NeilBrown
<neilb@suse.de>
Fri, 9 Sep 2005 23:24:00 +0000
(16:24 -0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Fri, 9 Sep 2005 23:39:14 +0000
(16:39 -0700)
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>
drivers/md/md.c
patch
|
blob
|
history
diff --git
a/drivers/md/md.c
b/drivers/md/md.c
index 0a13016829da26f9634a69d29670f15310d79f2a..f27e8f644dfe24adc8d07db3b02e131e36d8c088 100644
(file)
--- 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;
}