"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tools/mountstats/mountstats.py" between
nfs-utils-2.5.2.tar.xz and nfs-utils-2.5.3.tar.xz

About: nfs-utils is a Linux NFS utility package.

mountstats.py  (nfs-utils-2.5.2.tar.xz):mountstats.py  (nfs-utils-2.5.3.tar.xz)
skipping to change at line 381 skipping to change at line 381
print('\txprt:\trdma %s' % " ".join([str(self.__rpc_data[key]) for k ey in XprtRdmaCounters])) print('\txprt:\trdma %s' % " ".join([str(self.__rpc_data[key]) for k ey in XprtRdmaCounters]))
else: else:
raise Exception('Unknown RPC transport protocol %s' % self.__rpc_dat a['protocol']) raise Exception('Unknown RPC transport protocol %s' % self.__rpc_dat a['protocol'])
print('\tper-op statistics') print('\tper-op statistics')
prog, vers = self.__rpc_data['programversion'].split('/') prog, vers = self.__rpc_data['programversion'].split('/')
if vers == '3': if vers == '3':
for op in Nfsv3ops: for op in Nfsv3ops:
print('\t%12s: %s' % (op, " ".join(str(x) for x in self.__rpc_da ta[op]))) print('\t%12s: %s' % (op, " ".join(str(x) for x in self.__rpc_da ta[op])))
elif vers == '4': elif vers == '4':
for op in Nfsv4ops: for op in Nfsv4ops:
print('\t%12s: %s' % (op, " ".join(str(x) for x in self.__rpc_da try:
ta[op]))) print('\t%12s: %s' % (op, " ".join(str(x) for x in self.__rp
c_data[op])))
except KeyError:
continue
else: else:
print('\tnot implemented for version %d' % vers) print('\tnot implemented for version %d' % vers)
print() print()
def display_stats_header(self): def display_stats_header(self):
print('Stats for %s mounted on %s:' % \ print('Stats for %s mounted on %s:' % \
(self.__nfs_data['export'], self.__nfs_data['mountpoint'])) (self.__nfs_data['export'], self.__nfs_data['mountpoint']))
print() print()
def display_nfs_options(self): def display_nfs_options(self):
 End of changes. 1 change blocks. 
2 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)