Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
		}