From: Simon Wilkinson Date: Thu, 28 Feb 2013 17:07:31 +0000 (+0000) Subject: afsmonitor: Add missing items to fsOpNames array X-Git-Tag: upstream/1.8.0_pre1^2~1380 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=74d0d0d5e686d82e18f896889870af666c4d495d;p=packages%2Fo%2Fopenafs.git 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 Reviewed-by: Jeffrey Altman --- diff --git a/src/afsmonitor/afsmon-output.c b/src/afsmonitor/afsmon-output.c index b09ff81df..7aa98eb15 100644 --- a/src/afsmonitor/afsmon-output.c +++ b/src/afsmonitor/afsmon-output.c @@ -67,7 +67,9 @@ static char *fsOpNames[] = { "NGetVolumeInfo", "BulkStatus", "XStatsVersion", - "GetXStats" + "GetXStats", + "Lookup", + "Residency" }; static char *cmOpNames[] = {