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

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