Do not hide -enable_{peer,process}_stats
authorAndrew Deason <adeason@sinenomine.net>
Mon, 4 Nov 2013 00:59:08 +0000 (18:59 -0600)
committerDerrick Brashear <shadow@your-file-system.com>
Tue, 5 Nov 2013 02:36:05 +0000 (18:36 -0800)
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 <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>

src/afsd/afsd.c
src/kauth/kaserver.c

index adbed79..abe36c4 100644 (file)
@@ -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");
index 816871c..dea4ec8 100644 (file)
@@ -201,7 +201,7 @@ main(int argc, char *argv[])
               "[-auditlog <log path>] [-audit-interface <file|sysvmq>] "
               "[-rxbind] [-localfiles <lclpath>] [-minhours <n>] "
               "[-servers <serverlist>] [-crossrealm] "
-              /*" [-enable_peer_stats] [-enable_process_stats] " */
+              "[-enable_peer_stats] [-enable_process_stats] "
               "[-help]\n");
        exit(1);
     }