Skip to content

Commit a877ee0

Browse files
Bryan SchumakerChristoph Hellwig
authored andcommitted
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 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>
1 parent 814e1d2 commit a877ee0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎fs/namespace.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,6 +1109,7 @@ static int show_vfsstat(struct seq_file *m, void *v)
11091109

11101110
/* device */
11111111
if (mnt->mnt_sb->s_op->show_devname) {
1112+
seq_puts(m, "device ");
11121113
err = mnt->mnt_sb->s_op->show_devname(m, mnt);
11131114
} else {
11141115
if (mnt->mnt_devname) {

0 commit comments

Comments
 (0)