From 1f22cab96abd1ec83ea5c0d9c3fc1a405385b8ea Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Wed, 26 May 2010 11:28:57 -0500 Subject: [PATCH] Remove -rebuildDB flag to ptserver The -rebuildDB flag was documented to rebuild the Protection Database at startup, but it was accepted and ignored in the ptserver source, doing nothing. Remove the documentation and the option recognition in ptserver. Change-Id: I36f30f38464b602cb4739a958663a6feb5fe27bf Reviewed-on: http://gerrit.openafs.org/2029 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- doc/man-pages/pod8/ptserver.pod | 8 +------- src/ptserver/ptserver.c | 4 +--- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/doc/man-pages/pod8/ptserver.pod b/doc/man-pages/pod8/ptserver.pod index e024651..ff152c2 100644 --- a/doc/man-pages/pod8/ptserver.pod +++ b/doc/man-pages/pod8/ptserver.pod @@ -8,7 +8,7 @@ ptserver - Initializes the Protection Server
B S<<< [B<-database> | B<-db> >] >>> S<<< [B<-p> >] >>> S<<< [B<-d> >] >>> - [B<-rebuildDB>] S<<< [B<-groupdepth> >] >>> + S<<< [B<-groupdepth> >] >>> S<<< [B<-default_access> > >] >>> [B<-restricted>] [B<-enable_peer_stats>] [B<-enable_process_stats>] [B<-allow-dotted-principals>] @@ -90,12 +90,6 @@ Sets the number of server lightweight processes (LWPs or pthreads) to run. Provide a positive integer from the range C<3> to C<16>. The default value is C<3>. -=item B<-rebuildDB> - -Rebuilds the Protection Database at the beginning of Protection Server -initialization. Use this argument only in consultation with AFS -Development or Product Support. - =item B<-groupdepth> >, B<-depth> > Specifies the group depth for nested groups when B is compiled diff --git a/src/ptserver/ptserver.c b/src/ptserver/ptserver.c index 2f4114c..8490e3b 100644 --- a/src/ptserver/ptserver.c +++ b/src/ptserver/ptserver.c @@ -293,10 +293,8 @@ main(int argc, char **argv) lwps, 3); lwps = 3; } - } else if (strncmp(arg, "-rebuild", alen) == 0) /* rebuildDB++ */ - ; #if defined(SUPERGROUPS) - else if ((strncmp(arg, "-groupdepth", alen) == 0) + } else if ((strncmp(arg, "-groupdepth", alen) == 0) || (strncmp(arg, "-depth", alen) == 0)) { depthsg = atoi(argv[++a]); /* Max search depth for supergroups */ } -- 1.9.4