Skip to content

Commit

Permalink
[PATCH] md: add information about superblock version to /proc/mdstat
Browse files Browse the repository at this point in the history
Leave it unchanged if the original (0.90) is used, incase it might be a
compatability problem.

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 720a3dc commit 1cd6bf1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions drivers/md/md.c
Original file line number Diff line number Diff line change
@@ -3346,6 +3346,15 @@ static int md_seq_show(struct seq_file *seq, void *v)
seq_printf(seq, "\n %llu blocks",
(unsigned long long)size);
}
if (mddev->persistent) {
if (mddev->major_version != 0 ||
mddev->minor_version != 90) {
seq_printf(seq," super %d.%d",
mddev->major_version,
mddev->minor_version);
}
} else
seq_printf(seq, " super non-persistent");

if (mddev->pers) {
mddev->pers->status (seq, mddev);

0 comments on commit 1cd6bf1

Please sign in to comment.