between principal names may disable this check by starting the server
with this option.
-=item B<-preserve-vol-stats>
+=item B<-clear-vol-stats>
-Preserve volume access statistics over volume restore and reclone operations.
-By default, volume access statistics are reset during volume restore and reclone
-operations.
+Clear volume access statistics during volume restore and reclone operations.
+This includes clearing the volume access statistics of read-only volumes during
+a volume release. By default, volume access statistics are preserved during
+volume restore and reclone operations.
+
+Volume access statistics were cleared by default in versions prior to OpenAFS
+1.8.0. This flag is intended to provide compatible behaviour.
=item B<-sync> <I<sync behavior>>
S<<< [B<-logfile <I<log file>>] >>> S<<< [B<-config> <I<configuration path>>] >>>
S<<< [B<-udpsize> <I<size of socket buffer in bytes>>] >>>
S<<< [B<-d> <I<debug level>>] >>>
- [B<-nojumbo>] [B<-jumbo>]
- [B<-enable_peer_stats>] [B<-enable_process_stats>]
- [B<-allow-dotted-principals>] [B<-preserve-vol-stats>]
+ [B<-nojumbo>] [B<-jumbo>]
+ [B<-enable_peer_stats>] [B<-enable_process_stats>]
+ [B<-allow-dotted-principals>] [B<-clear-vol-stats>]
[B<-sync> <I<sync behavior>>]
[B<-rxmaxmtu> <I<bytes>>]
[B<-rxbind>]
int rxBind = 0;
int rxkadDisableDotCheck = 0;
-int DoPreserveVolumeStats = 0;
+int DoPreserveVolumeStats = 1;
int rxJumbograms = 0; /* default is to not send and receive jumbograms. */
int rxMaxMTU = -1;
char *auditFileName = NULL;
OPT_peer,
OPT_process,
OPT_preserve_vol_stats,
+ OPT_clear_vol_stats,
OPT_sync,
#ifdef HAVE_SYSLOG
OPT_syslog,
CMD_OPTIONAL, "enable RX transport statistics");
cmd_AddParmAtOffset(opts, OPT_process, "-enable_process_stats", CMD_FLAG,
CMD_OPTIONAL, "enable RX RPC statistics");
+ /* -preserve-vol-stats on by default now. */
cmd_AddParmAtOffset(opts, OPT_preserve_vol_stats, "-preserve-vol-stats", CMD_FLAG,
- CMD_OPTIONAL, "preserve volume statistics");
+ CMD_OPTIONAL|CMD_HIDDEN,
+ "preserve volume statistics when restoring/recloning");
+ cmd_AddParmAtOffset(opts, OPT_clear_vol_stats, "-clear-vol-stats", CMD_FLAG,
+ CMD_OPTIONAL, "clear volume statistics when restoring/recloning");
#ifdef HAVE_SYSLOG
cmd_AddParmAtOffset(opts, OPT_syslog, "-syslog", CMD_SINGLE_OR_FLAG,
CMD_OPTIONAL, "log to syslog");
cmd_OptionAsFlag(opts, OPT_log, &DoLogging);
cmd_OptionAsFlag(opts, OPT_rxbind, &rxBind);
cmd_OptionAsFlag(opts, OPT_dotted, &rxkadDisableDotCheck);
- cmd_OptionAsFlag(opts, OPT_preserve_vol_stats, &DoPreserveVolumeStats);
+ if (cmd_OptionPresent(opts, OPT_clear_vol_stats))
+ DoPreserveVolumeStats = 0;
if (cmd_OptionPresent(opts, OPT_peer))
rx_enablePeerRPCStats();
if (cmd_OptionPresent(opts, OPT_process))