dafs: remove the salvageserver -datelogs option
authorMichael Meffie <mmeffie@sinenomine.net>
Mon, 30 Mar 2015 17:17:25 +0000 (13:17 -0400)
committerBenjamin Kaduk <kaduk@mit.edu>
Wed, 2 Dec 2015 05:22:51 +0000 (00:22 -0500)
Remove the undocumented -datelogs option from the salavageserver, which
was a carry over from the standalone salvager program, but is not
appropriate for a daemon.

Change-Id: Ia382d6550e0641edcba55a414e00323755487e18
Reviewed-on: http://gerrit.openafs.org/11814
Reviewed-by: Perry Ruiter <pruiter@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>

src/vol/salvaged.c

index 302d27f..a44788c 100644 (file)
@@ -183,7 +183,6 @@ enum optionsList {
     OPT_orphans,
     OPT_syslog,
     OPT_syslogfacility,
-    OPT_datelogs,
     OPT_logfile,
     OPT_client
 };
@@ -262,10 +261,6 @@ handleit(struct cmd_syndesc *opts, void *arock)
        ShowLog = 0;
     }
     cmd_OptionAsInt(opts, OPT_syslogfacility, &useSyslogFacility);
-
-    if (cmd_OptionPresent(opts, OPT_datelogs)) {
-       TimeStampLogFile((char *)AFSDIR_SERVER_SALSRVLOG_FILEPATH);
-    }
 #endif
 
     if (cmd_OptionPresent(opts, OPT_client)) {
@@ -414,8 +409,6 @@ main(int argc, char **argv)
            "Write salvage log to syslogs");
     cmd_AddParmAtOffset(ts, OPT_syslogfacility, "-syslogfacility", CMD_SINGLE,
            CMD_OPTIONAL, "Syslog facility number to use");
-    cmd_AddParmAtOffset(ts, OPT_datelogs, "-datelogs", CMD_FLAG, CMD_OPTIONAL,
-               "Include timestamp in logfile filename");
 #endif
 
     cmd_AddParmAtOffset(ts, OPT_client, "-client", CMD_FLAG, CMD_OPTIONAL,