Blame SOURCES/nfs-utils-1.3.0-mountstats-pnfs.patch

e19a30
commit 3e2ab78a2cfbc2d11c31ced8d3f538d5aae757f1
e19a30
Author: Scott Mayhew <smayhew@redhat.com>
e19a30
Date:   Thu Sep 22 13:33:33 2016 -0400
e19a30
e19a30
    mountstats: add pNFS READs and WRITEs
e19a30
    
e19a30
    These counters are already in /proc/self/mountstats but the mountstats
e19a30
    program doesn't display them.
e19a30
    
e19a30
    Signed-off-by: Scott Mayhew <smayhew@redhat.com>
e19a30
    Signed-off-by: Steve Dickson <steved@redhat.com>
e19a30
    Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1377740
e19a30
e19a30
diff --git a/tools/mountstats/mountstats.py b/tools/mountstats/mountstats.py
e19a30
index 4ca4bc4..88ccdae 100644
e19a30
--- a/tools/mountstats/mountstats.py
e19a30
+++ b/tools/mountstats/mountstats.py
e19a30
@@ -412,6 +412,8 @@ class DeviceData:
e19a30
         print('  short reads: %d  short writes: %d' % \
e19a30
             (self.__nfs_data['shortreads'], self.__nfs_data['shortwrites']))
e19a30
         print('  NFSERR_DELAYs from server: %d' % self.__nfs_data['delay'])
e19a30
+        print('  pNFS READs: %d' % self.__nfs_data['pnfsreads'])
e19a30
+        print('  pNFS WRITEs: %d' % self.__nfs_data['pnfswrites'])
e19a30
 
e19a30
     def display_nfs_bytes(self):
e19a30
         """Pretty-print the NFS event counters