projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
720a3dc
)
[PATCH] md: add information about superblock version to /proc/mdstat
author
NeilBrown
<
[email protected]
>
Fri, 9 Sep 2005 23:24:00 +0000
(16:24 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 9 Sep 2005 23:39:14 +0000
(16:39 -0700)
Leave it unchanged if the original (0.90) is used, incase it might be a
compatability problem.
Signed-off-by: Neil Brown <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/md/md.c
patch
|
blob
|
history
diff --git
a/drivers/md/md.c
b/drivers/md/md.c
index 39b917bc0fc0b4c4e4103f6a64e9db05c6183d09..0a13016829da26f9634a69d29670f15310d79f2a 100644
(file)
--- a/
drivers/md/md.c
+++ b/
drivers/md/md.c
@@
-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);