diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2011-10-07 13:41:15 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@serles.lst.de> | 2011-10-28 13:55:08 +0200 |
commit | a877ee03ac010ded434b77f7831f43cbb1fcc60f (patch) | |
tree | cb8030a12bb2d0c13ae7d46d918a08e14701a59b /fs/namespace.c | |
parent | 814e1d25a59662f9552e6dc1305d1df3616fc87e (diff) | |
download | op-kernel-dev-a877ee03ac010ded434b77f7831f43cbb1fcc60f.zip op-kernel-dev-a877ee03ac010ded434b77f7831f43cbb1fcc60f.tar.gz |
vfs: add "device" tag to /proc/self/mountstats
nfsiostat was failing to find mounted filesystems on kernels after
2.6.38 because of changes to show_vfsstat() by commit
c7f404b40a3665d9f4e9a927cc5c1ee0479ed8f9. This patch adds back the
"device" tag before the nfs server entry so scripts can parse the
mountstats file correctly.
Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
CC: stable@kernel.org [>=2.6.39]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/namespace.c')
-rw-r--r-- | fs/namespace.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/namespace.c b/fs/namespace.c index b4febb2..e5e1c7d 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -1109,6 +1109,7 @@ static int show_vfsstat(struct seq_file *m, void *v) /* device */ if (mnt->mnt_sb->s_op->show_devname) { + seq_puts(m, "device "); err = mnt->mnt_sb->s_op->show_devname(m, mnt); } else { if (mnt->mnt_devname) { |