All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bryan Schumaker <bjschuma@netapp.com>
To: "linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>
Cc: "Myklebust, Trond" <Trond.Myklebust@netapp.com>,
	Chuck Lever <chuck.lever@oracle.com>
Subject: [PATCH] NFS: Add "device" tag to /proc/self/mountstats
Date: Fri, 26 Aug 2011 16:52:56 -0400	[thread overview]
Message-ID: <4E5807A8.2020600@netapp.com> (raw)

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

             reply	other threads:[~2011-08-26 20:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-26 20:52 Bryan Schumaker [this message]
2011-08-27 23:52 ` [PATCH] NFS: Add "device" tag to /proc/self/mountstats 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E5807A8.2020600@netapp.com \
    --to=bjschuma@netapp.com \
    --cc=Trond.Myklebust@netapp.com \
    --cc=chuck.lever@oracle.com \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.