]> git.michaelhowe.org Git - packages/o/openafs.git/commit
xstat: length check cm call info
authorMichael Meffie <mmeffie@sinenomine.net>
Mon, 10 Dec 2012 23:00:25 +0000 (18:00 -0500)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 28 Aug 2013 14:23:39 +0000 (07:23 -0700)
commit2ee9f04c1cd26b93d6b773c4eec329a0d04648ea
tree5d13a95dee12b0e6cd95170a2f1f4438f59d73dd
parent008a0965615d0a16eb1eb402e4d240ebd70e73c2
xstat: length check cm call info

Define the cm xstat function call counters with an xmacro to avoid
duplicating the list of cm function names.  This obviates the need
to update xstat_cm_test.c when new function names are added to the
cm xstat collection id 0.

Check the number of returned records when printing the function call
counts to avoid over-running when a newer xstat_cm_test client
receives data from an older cm.

Reviewed-on: http://gerrit.openafs.org/8741
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
(cherry picked from commit 09c0484fd8878797957f7ff5936c542a0f6332c4)

Change-Id: I622a4f16cbb102962199f26e5431b04ea381d5fe
Reviewed-on: http://gerrit.openafs.org/9065
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/afs/afs_stats.h
src/xstat/xstat_cm_test.c