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

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