Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Bryan Schumaker and committed by
Christoph Hellwig
a877ee03 814e1d25

+1
+1
fs/namespace.c
··· 1109 1109 1110 1110 /* device */ 1111 1111 if (mnt->mnt_sb->s_op->show_devname) { 1112 + seq_puts(m, "device "); 1112 1113 err = mnt->mnt_sb->s_op->show_devname(m, mnt); 1113 1114 } else { 1114 1115 if (mnt->mnt_devname) {