mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
[PATCH] md: add information about superblock version to /proc/mdstat
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>
This commit is contained in:
parent
720a3dc39b
commit
1cd6bf19bb
1 changed files with 9 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue