OpenAFS Master Repository branch, openafs-stable-1_6_x, updated. openafs-stable-1_6_0b-186-g303b6fd
Gerrit Code Review
gerrit@openafs.org
Wed, 14 Dec 2011 20:18:34 -0800 (PST)
The following commit has been merged in the openafs-stable-1_6_x branch:
commit 303b6fd682abaa0affd15a4ddd7d5b6b11f620bc
Author: Felix Frank <Felix.Frank@Alumni.TU-Berlin.de>
Date: Sat Nov 13 00:10:31 2010 +0100
rxgen: add *TranslateOpcode functions to XDR code
Administrative commands and server binaries can benefit from the
ability to translate RPC OpCode numbers to proper function names.
For this purpose, rxgen now emits the function
char *PKGTranslateOpCode(int)
where PKG is replaced by the respective package prefix.
The function is generated in the exact same way that ExecuteRequest is.
This way, the right optimization (array storage vs. generated case
statement) according to the respective sparseness of OpCodes in the
different RX packages is maintained.
Reviewed-on: http://gerrit.openafs.org/3305
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit 5c77a6ca2460c3e79125a614037824db35480905)
Change-Id: I23d7af2dd07e02255783de0523fce58dbe46d31e
Reviewed-on: http://gerrit.openafs.org/6267
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/rxgen/rpc_main.c | 2 +
src/rxgen/rpc_parse.c | 89 +++++++++++++++++++++++++++++++++++--------------
2 files changed, 66 insertions(+), 25 deletions(-)
--
OpenAFS Master Repository