Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / doc / man-pages / pod1 / fs_cscpolicy.pod
CommitLineData
805e021f
CE
1=head1 NAME
2
3fs_cscpolicy - Change client side caching policy for AFS shares [Windows only]
4
5=head1 SYNOPSIS
6
7=for html
8<div class="synopsis">
9
10B<fs cscpolicy> S<<< [B<-share> I<sharename> [B<-manual>|B<-programs>|B<-documents>|B<-disable>] ] >>>
11
12=for html
13</div>
14
15=head1 DESCRIPTION
16
17The fs cscpolicy command sets the client side caching policy for a
18particular AFS share, or displays a list of policies.
19
20This command can change the policy of only one share at a time.
21
22Only one of the policy options B<-manual>, B<-programs>, B<-documents>, or
23B<-disable>, may be selected. The default policy is B<-manual>.
24
25After changing the policy for a share, you must close all applications
26that accessed files on this share, or restart AFS Client, for the change
27to take effect.
28
29=head1 CAUTIONS
30
31This command is only available on Windows.
32
33Use of this functionality is not recommended. Windows Offline Folders do
34not work well with AFS since the AFS server is always present. When this
35functionality was contributed and incorporated, it was believed to be safe
36for the AFS cache manager to return BADNETPATH errors when a single file
37server or volume was inaccessible. It is now known that returning such
38errors causes the Microsoft SMB redirector to drop the connection to the
39AFS server resulting in serious side effects.
40
41This functionality is specific to use with the Microsoft SMB redirector.
42Client Side Caching (Offline Folders) is built into that driver and will
43not be present in the native AFS redirector, so this functionality will be
44removed at a future date.
45
46=head1 OPTIONS
47
48=over 4
49
50=item B<-share> I<sharename>
51
52The name of the share whose policy is to be changed. (If omitted, no
53share policy is changed.)
54
55=item B<-manual>
56
57Specifies manual caching of documents.
58
59=item B<-programs>
60
61Specifies automatic caching of programs and documents.
62
63=item B<-documents>
64
65Specifies automatic caching of documents.
66
67=item B<-disable>
68
69Disables caching.
70
71=back
72
73=head1 OUTPUT
74
75When changing the policy of a share, the output is:
76
77 CSC policy on share "share" changed to "policy".
78 Close all applications that accessed files on this share or restart AFS Client for the change to take effect.
79
80When displaying policies, the output is:
81
82 policyname = policy
83
84=head1 EXAMPLES
85
86The following command disables all caching on the share "AFS1":
87
88 % fs cscpolicy -share AFS1 -disable
89
90The following command displays all policies currently in effect:
91
92 % fs cscpolicy
93
94=head1 PRIVILEGE REQUIRED
95
96The issuer must be have AFS Client Administrator access, either to display
97or to set policies.
98
99In addition, to change policies, the issuer must be a Windows
100Administrator, since policy information is stored in a protected area of
101the Windows Registry.
102
103=head1 COPYRIGHT
104
105This document was written by Mike Robinson, and is released under the IBM
106Public License Version 1.0. Jeffrey Altman made several corrections,
107clarifications, and additions.