summaryrefslogtreecommitdiffstats
path: root/support/export
diff options
context:
space:
mode:
authorScott Mayhew <smayhew@redhat.com>2015-12-11 11:16:38 -0500
committerSteve Dickson <steved@redhat.com>2015-12-11 11:22:25 -0500
commitb92f1b94b6a1cc8460a7f11b1b3f5f6f62701145 (patch)
treea4d92b24ce8f11458c2a745e5f48a015c573f9e9 /support/export
parent6c39d9946a6fbe9a65a1194d72268fc4b75b0c6c (diff)
downloadnfs-utils-b92f1b94b6a1cc8460a7f11b1b3f5f6f62701145.tar.gz
nfs-utils-b92f1b94b6a1cc8460a7f11b1b3f5f6f62701145.tar.xz
nfs-utils-b92f1b94b6a1cc8460a7f11b1b3f5f6f62701145.zip
mountstats: handle KeyError in accumulate_iostats()
This will prevent a backtrace like this from occurring in 'mountstats nfsstat' if a new NFSv4 operation is added to the kernel but not to the Nfsv4ops list in mountstats.py: Traceback (most recent call last): File "/sbin/mountstats", line 988, in <module> res = main() File "/sbin/mountstats", line 977, in main return args.func(args) File "/sbin/mountstats", line 792, in nfsstat_command v4stats.accumulate_iostats(acc_stats) File "/sbin/mountstats", line 566, in accumulate_iostats self.__rpc_data[op] = list(map(add, self.__rpc_data[op], new_stats.__rpc_data[op])) KeyError: 'SEEK' Signed-off-by: Scott Mayhew <smayhew@redhat.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/export')
0 files changed, 0 insertions, 0 deletions