All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] NFS: Add "device" tag to /proc/self/mountstats
@ 2011-08-26 20:52 Bryan Schumaker
  2011-08-27 23:52 ` Chuck Lever
  0 siblings, 1 reply; 7+ messages in thread
From: Bryan Schumaker @ 2011-08-26 20:52 UTC (permalink / raw)
  To: linux-nfs; +Cc: Myklebust, Trond, Chuck Lever

nfsiostat was failing to find mounted filesystems on recent kernels due
to changes in the VFS that resulted in a missing "device" tag in the
/proc/self/mountstats file.  This patch re-adds the "device" tag for NFS
mount data in /proc/self/mountstats.

Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
---
 fs/nfs/super.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index b961cea..e6a0317 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -766,8 +766,10 @@ static int nfs_show_devname(struct seq_file *m, struct vfsmount *mnt)
 	devname = nfs_path(&dummy, mnt->mnt_root, page, PAGE_SIZE);
 	if (IS_ERR(devname))
 		err = PTR_ERR(devname);
-	else
+	else {
+		seq_puts(m, "device ");
 		seq_escape(m, devname, " \t\n\\");
+	}
 	free_page((unsigned long)page);
 	return err;
 }
-- 
1.7.6

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-08-29 15:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-26 20:52 [PATCH] NFS: Add "device" tag to /proc/self/mountstats Bryan Schumaker
2011-08-27 23:52 ` Chuck Lever
2011-08-29 13:46   ` Bryan Schumaker
2011-08-29 14:43     ` Chuck Lever
2011-08-29 14:55       ` Bryan Schumaker
2011-08-29 15:36         ` Chuck Lever
2011-08-29 15:55           ` Bryan Schumaker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.