Skip to contentSkip to conversation

gssd, statd: correct command help text

PATCH In review Prabhakar Pujeri 2 participants 4 messages Aug 31 – Sep 14

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover gssd, statd: correct command help text

Bring the command help in line with the options accepted by rpc.gssd and rpc.statd. The first patch removes a stale rpc.gssd option and adds its timeout option. The second adds the existing NLM port options to rpc.statd usage output.

The series is based on current nfs-utils master. A fresh autotools build and make check complete successfully; the statd integration test is skipped when its required service environment is unavailable.

Prabhakar Pujeri (2):
gssd: sync usage() and man page synopsis with actual options
statd: document the NLM port options in usage()

 utils/gssd/gssd.c   | 2 +-
 utils/gssd/gssd.man | 2 +-
 utils/statd/statd.c | 2 ++
 3 files changed, 4 insertions(+), 2 deletions(-)
Signature · 1 line
2.55.0
#1 lore raw

PATCH 1/2 gssd: sync usage() and man page synopsis with actual options

The getopt string no longer contains 'l', so the '-l' advertised by usage() and the rpc.gssd(8) synopsis only earns users an "invalid option". Conversely, the -T rpc-timeout option exists but was never added to usage().

Drop the stale -l from both places and document -T.

---
 utils/gssd/gssd.c   | 2 +-
 utils/gssd/gssd.man | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
utils/gssd/gssd.c +1 -1
index a0a65014..a5165c0a 100644
@@ -1023,7 +1023,7 @@ sig_die(int signal)
 static void
 usage(char *progname)
 {
-	fprintf(stderr, "usage: %s [-f] [-l] [-M] [-n] [-v] [-r] [-p pipefsdir] [-k keytab] [-d ccachedir] [-t timeout] [-R preferred realm] [-D] [-H] [-U upcall timeout] [-C]\n",
+	fprintf(stderr, "usage: %s [-f] [-M] [-n] [-v] [-r] [-p pipefsdir] [-k keytab] [-d ccachedir] [-t timeout] [-T rpc-timeout] [-R preferred realm] [-D] [-H] [-U upcall timeout] [-C]\n",
 		progname);
 	exit(1);
 }
utils/gssd/gssd.man +1 -1
index 57ad30cf..73ae02ca 100644
@@ -8,7 +8,7 @@
 rpc.gssd \- RPCSEC_GSS daemon
 .SH SYNOPSIS
 .B rpc.gssd
-.RB [ \-DfMnlvrHC ]
+.RB [ \-DfMnvrHC ]
 .RB [ \-k
 .IR keytab ]
 .RB [ \-p
Signature · 1 line
2.55.0
#2 lore raw

PATCH 2/2 statd: document the NLM port options in usage()

In reply to Prabhakar Pujeri

rpc.statd accepts -T/--nlm-port and -U/--nlm-udp-port and both are described in rpc.statd(8), but usage() never mentions them.

---
 utils/statd/statd.c | 2 ++
 1 file changed, 2 insertions(+)
utils/statd/statd.c +2 -0
index a469a67a..fa43ba17 100644
@@ -153,6 +153,8 @@ usage(void)
 	fprintf(stderr,"      -d, --no-syslog      Verbose logging to stderr.  Foreground mode only.\n");
 	fprintf(stderr,"      -p, --port           Port to listen on\n");
 	fprintf(stderr,"      -o, --outgoing-port  Port for outgoing connections\n");
+	fprintf(stderr,"      -T, --nlm-port       NLM TCP port (and UDP, unless set separately)\n");
+	fprintf(stderr,"      -U, --nlm-udp-port   NLM UDP port\n");
 	fprintf(stderr,"      -V, -v, --version    Display version information and exit.\n");
 	fprintf(stderr,"      -n, --name           Specify a local hostname.\n");
 	fprintf(stderr,"      -P                   State directory path.\n");
Signature · 1 line
2.55.0
#3 lore raw
In reply to Prabhakar Pujeri
Quoted 9 lines · Prabhakar Pujeri

Bring the command help in line with the options accepted by rpc.gssd and rpc.statd. The first patch removes a stale rpc.gssd option and adds its timeout option. The second adds the existing NLM port options to rpc.statd usage output.

The series is based on current nfs-utils master. A fresh autotools build and make check complete successfully; the statd integration test is skipped when its required service environment is unavailable.

Quoted 9 lines

Prabhakar Pujeri (2):
gssd: sync usage() and man page synopsis with actual options
statd: document the NLM port options in usage()

  utils/gssd/gssd.c   | 2 +-
  utils/gssd/gssd.man | 2 +-
  utils/statd/statd.c | 2 ++
  3 files changed, 4 insertions(+), 2 deletions(-)

Committed... (tag: nfs-utils-2-9-3-rc3)

steved.