mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-02 09:16:41 +09:00
vfs: add "device" tag to /proc/self/mountstats
commita877ee03acupstream. nfsiostat was failing to find mounted filesystems on kernels after 2.6.38 because of changes to show_vfsstat() by commitc7f404b40a. 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> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
b2f0a734b0
commit
2f8c09acae
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user