From e7b75a2e405032990932bf7734e851379c32adf6 Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Sun, 3 Nov 2013 18:59:08 -0600 Subject: [PATCH] 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 --- src/afsd/afsd.c | 6 ++---- src/kauth/kaserver.c | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) 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); } -- 2.39.5