does when it wants to perform a "sync".
There are several options; pass one of these as the argument to -sync. The
-default is C<delayed>.
+default is C<onclose>.
=over 4
This option is currently not recommended, since in the past the code
implementing this option has caused rare data corruption during normal
-operation. However, it is currently the default option to allow consistent
-behavior from previous OpenAFS releases.
+operation.
This was the only behavior allowed in OpenAFS releases starting from 1.4.5 up
-to and including 1.6.2. It is the default starting in OpenAFS 1.6.3. This
-option will be removed in a future version of OpenAFS, and the default behavior
-will likely change to the C<onclose> behavior.
+to and including 1.6.2. It was the default starting from OpenAFS 1.6.3 up to
+and including OpenAFS 1.6.6. This option will be removed in a future version of
+OpenAFS.
=item onclose
actively being used, but if a volume is detached, there is an additional
guarantee for the data's consistency.
+This option is the default starting with OpenAFS 1.6.7.
+
=item never
This causes all syncs to never do anything. This is the fastest option, with
* is called */
vol_io_params.fd_max_cachesize = FD_MAX_CACHESIZE;
- vol_io_params.sync_behavior = IH_SYNC_DELAYED;
+ vol_io_params.sync_behavior = IH_SYNC_ONCLOSE;
}
int