From: Andrew Deason Date: Mon, 4 Nov 2013 00:59:08 +0000 (-0600) Subject: Do not hide -enable_{peer,process}_stats X-Git-Tag: upstream/1.8.0_pre1^2~912 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=e7b75a2e405032990932bf7734e851379c32adf6;p=packages%2Fo%2Fopenafs.git Do not hide -enable_{peer,process}_stats Both afsd and kaserver accepted the -enable_peer_stats and -enable_process_stats options, but they did not include the options in their usage message. We already document these flags in the manpages, so also include them in the usage message; they are not a secret. Change-Id: Ic1ff0e8c0dcd07e2721676b09a53c30a3db3ee9d Reviewed-on: http://gerrit.openafs.org/10419 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/afsd/afsd.c b/src/afsd/afsd.c index adbed7947..abe36c482 100644 --- a/src/afsd/afsd.c +++ b/src/afsd/afsd.c @@ -2507,11 +2507,9 @@ afsd_init(void) cmd_AddParmAtOffset(ts, OPT_shutdown, "-shutdown", CMD_FLAG, CMD_OPTIONAL, "Shutdown all afs state"); cmd_AddParmAtOffset(ts, OPT_peerstats, "-enable_peer_stats", CMD_FLAG, - CMD_OPTIONAL | CMD_HIDE, - "Collect rpc statistics by peer"); + CMD_OPTIONAL, "Collect rpc statistics by peer"); cmd_AddParmAtOffset(ts, OPT_processstats, "-enable_process_stats", - CMD_FLAG, CMD_OPTIONAL | CMD_HIDE, - "Collect rpc statistics for this process"); + CMD_FLAG, CMD_OPTIONAL, "Collect rpc statistics for this process"); cmd_AddParmAtOffset(ts, OPT_memallocsleep, "-mem_alloc_sleep", CMD_FLAG, CMD_OPTIONAL | CMD_HIDE, "Allow sleeps when allocating memory cache"); diff --git a/src/kauth/kaserver.c b/src/kauth/kaserver.c index 816871ca1..dea4ec8bb 100644 --- a/src/kauth/kaserver.c +++ b/src/kauth/kaserver.c @@ -201,7 +201,7 @@ main(int argc, char *argv[]) "[-auditlog ] [-audit-interface ] " "[-rxbind] [-localfiles ] [-minhours ] " "[-servers ] [-crossrealm] " - /*" [-enable_peer_stats] [-enable_process_stats] " */ + "[-enable_peer_stats] [-enable_process_stats] " "[-help]\n"); exit(1); }