=head1 NAME
fs_storebehind - Enables asynchronous writes to the file server
=head1 SYNOPSIS
=for html
B S<<< [B<-kbytes> >] >>>
S<<< [B<-files> >+] >>>
S<<< [B<-allfiles> >] >>> [B<-verbose>] [B<-help>]
B S<<< [B<-k> >] >>>
S<<< [B<-f> >+] >>>
S<<< [B<-a> >] >>> [B<-v>] [B<-h>]
=for html
=head1 DESCRIPTION
The B command enables the Cache Manager to perform a
delayed asynchronous write to the File Server when an application closes a
file. By default, the Cache Manager writes all data to the File Server
immediately and synchronously when an application program closes a file --
that is, the close() system call does not return until the Cache Manager
has actually transferred the final chunk of the file to the File
Server. This command specifies the number of kilobytes of a file that can
still remain to be written to the File Server when the Cache Manager
returns control to the application. It is useful if users working on the
machine commonly work with very large files, but also introduces the
complications discussed in the L.
Set either or both of the following in a single command:
=over 4
=item *
To set a value that applies to all AFS files manipulated by applications
running on the machine, use the B<-allfiles> argument. This value is
termed the I for the machine, and persists until
the machine reboots. If it is not set, the default value is zero,
indicating that the Cache Manager performs synchronous writes.
As an example, the following setting means that when an application closes
a file, the Cache Manager can return control to the application as soon as
no more than 10 kilobytes of the file remain to be written to the File
Server.
-allfiles 10
=item *
To set a value that applies to one or more individual files, and overrides
the value of the B<-allfiles> argument for them, combine the B<-kbytes>
and B<-files> arguments. The setting persists as long as there is an entry
for the file in the kernel table that the Cache Manager uses to track
certain information about files. In general, such an entry persists at
least until an application closes the file or exits, but the Cache Manager
is free to recycle the entry if the file is inactive and it needs to free
up slots in the table. To increase the certainty that there is an entry
for the file in the table, issue the B command shortly
before closing the file.
As an example, the following setting means that when an application closes
either of the files B and B, the Cache Manager can
return control to the application as soon as no more than a megabyte of
the file remains to be written to the File Server.
-kbytes 1024 -files bigfile biggerfile
Note that once an explicit value has been set for a file, the only way to
make it subject to the default store asynchrony once again is to set
B<-kbytes> to that value. In other words, there is no combination of
arguments that automatically makes a file subject to the default store
asynchrony once another value has been set for the file.
=back
To display the settings that currently apply to individual files or to all
files, provide the command's arguments in certain combinations as
specified in L