Skip to content

Commit

Permalink
vfs: add "device" tag to /proc/self/mountstats
Browse files Browse the repository at this point in the history
nfsiostat was failing to find mounted filesystems on kernels after
2.6.38 because of changes to show_vfsstat() by commit
c7f404b.  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>
  • Loading branch information
Bryan Schumaker authored and Christoph Hellwig committed Oct 28, 2011
1 parent 814e1d2 commit a877ee0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a877ee0

Please sign in to comment.