Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a877ee03 authored by Bryan Schumaker's avatar Bryan Schumaker Committed by Christoph Hellwig
Browse files

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
c7f404b4.  This patch adds back the
"device" tag before the nfs server entry so scripts can parse the
mountstats file correctly.

Signed-off-by: default avatarBryan Schumaker <bjschuma@netapp.com>
CC: stable@kernel.org [>=2.6.39]
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 814e1d25
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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) {