afsmonitor: Add missing items to fsOpNames array
authorSimon Wilkinson <sxw@your-file-system.com>
Thu, 28 Feb 2013 17:07:31 +0000 (17:07 +0000)
committerJeffrey Altman <jaltman@your-file-system.com>
Fri, 1 Mar 2013 00:23:06 +0000 (16:23 -0800)
commit74d0d0d5e686d82e18f896889870af666c4d495d
treed4bdbe96e2a93a9a58ad4d6c8faad0c51422793a
parent2c8e4f839fc253abb8051bbf89d36e94a2200590
afsmonitor: Add missing items to fsOpNames array

The Lookup and Residency fs stats counters were missing from the
fsOpNames array. Add them in - Lookup has been missing since the
IBM release, Residency was missed when the MR-AFS code was merged.

This is still rather fragile, as there's no guarantee that
AFS_STATS_NUM_FS_RPC_OPS matches the number of elements in this
array. However, this is now correct until someone breaks it again...

Caught by coverity (#985569)

Change-Id: I22496050d5e786276a6646aa763d036449a3660d
Reviewed-on: http://gerrit.openafs.org/9314
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/afsmonitor/afsmon-output.c