summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Mayhew <smayhew@redhat.com>2016-09-22 13:33:33 -0400
committerSteve Dickson <steved@redhat.com>2016-09-22 13:33:33 -0400
commit3e2ab78a2cfbc2d11c31ced8d3f538d5aae757f1 (patch)
treebaf8800e5ecc5dd2d2b074a6f340f708d53feab0
parentce2737b5ca3e1b7e5ea14c21a67cbc92fcc558be (diff)
downloadnfs-utils-3e2ab78a2cfbc2d11c31ced8d3f538d5aae757f1.tar.gz
mountstats: add pNFS READs and WRITEs
These counters are already in /proc/self/mountstats but the mountstats program doesn't display them. Signed-off-by: Scott Mayhew <smayhew@redhat.com> Signed-off-by: Steve Dickson <steved@redhat.com> Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1377740
-rw-r--r--tools/mountstats/mountstats.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/mountstats/mountstats.py b/tools/mountstats/mountstats.py
index 4ca4bc4..88ccdae 100644
--- a/tools/mountstats/mountstats.py
+++ b/tools/mountstats/mountstats.py
@@ -412,6 +412,8 @@ class DeviceData:
print(' short reads: %d short writes: %d' % \
(self.__nfs_data['shortreads'], self.__nfs_data['shortwrites']))
print(' NFSERR_DELAYs from server: %d' % self.__nfs_data['delay'])
+ print(' pNFS READs: %d' % self.__nfs_data['pnfsreads'])
+ print(' pNFS WRITEs: %d' % self.__nfs_data['pnfswrites'])
def display_nfs_bytes(self):
"""Pretty-print the NFS event counters