[B<-salvagedirs>] [B<-blockreads>]
S<<< [B<-parallel> <I<# of max parallel partition salvaging>>] >>>
S<<< [B<-tmpdir> <I<name of dir to place tmp files>>] >>>
- [B<-showlog>]
S<<< [B<-orphans> (ignore | remove | attach)] >>>
[B<-syslog>]
S<<< [B<-syslogfacility> <I<Syslog facility number to use>>] >>>
to the specified directory, it attempts to write to the partition being
salvaged.
-=item B<-showlog>
-
-Displays on the standard output stream all log data that is being written
-to the F</usr/afs/logs/SalsrvLog> file.
-
=item B<-orphans> (ignore | remove | attach)
Controls how the Salvageserver handles orphaned files and directories. Choose
OPT_blockreads,
OPT_parallel,
OPT_tmpdir,
- OPT_showlog,
OPT_orphans,
OPT_syslog,
OPT_syslogfacility,
free(optstring);
optstring = NULL;
}
- cmd_OptionAsFlag(opts, OPT_showlog, &ShowLog);
if (cmd_OptionAsString(opts, OPT_orphans, &optstring) == 0) {
if (Testing)
orphans = ORPH_IGNORE;
#ifndef AFS_NT40_ENV /* ignore options on NT */
if (cmd_OptionPresent(opts, OPT_syslog)) {
useSyslog = 1;
- ShowLog = 0;
}
cmd_OptionAsInt(opts, OPT_syslogfacility, &useSyslogFacility);
#endif
vid = (VolumeId)vid_l;
}
- if (ShowLog) {
- printf("-showlog does not work with -client\n");
- exit(-1);
- }
-
if (!seenpart || !seenvol) {
printf("You must specify '-partition' and '-volumeid' with the '-client' option\n");
exit(-1);
"# of max parallel partition salvaging");
cmd_AddParmAtOffset(ts, OPT_tmpdir, "-tmpdir", CMD_SINGLE, CMD_OPTIONAL,
"Name of dir to place tmp files ");
- cmd_AddParmAtOffset(ts, OPT_showlog, "-showlog", CMD_FLAG, CMD_OPTIONAL,
- "Show log file upon completion");
cmd_AddParmAtOffset(ts, OPT_orphans, "-orphans", CMD_SINGLE, CMD_OPTIONAL,
"ignore | remove | attach");
if (asprintf(&childLog, "%s.%d",
AFSDIR_SERVER_SLVGLOG_FILEPATH, getpid()) < 0) {
logFile = stdout;
- ShowLog = 0;
} else {
logFile = afs_fopen(childLog, "a");
if (!logFile) { /* still nothing, use stdout */