diff options
author | NeilBrown <neilb@suse.de> | 2005-09-09 16:24:00 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-09 16:39:14 -0700 |
commit | 1cd6bf19bbe8098153d7a478d8fc551edbea9305 (patch) | |
tree | 35f662b0a07a14c76ef7b48e06c8b20b63d00488 /drivers | |
parent | 720a3dc39b030e273bc955641f2517874fd38fc5 (diff) | |
download | op-kernel-dev-1cd6bf19bbe8098153d7a478d8fc551edbea9305.zip op-kernel-dev-1cd6bf19bbe8098153d7a478d8fc551edbea9305.tar.gz |
[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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/md.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 39b917b..0a13016 100644 --- 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); |