FS_CSCPOLICY(1)
πΈ fs_cscpolicy β AFS Command Reference (OpenAFS) πΈ
okay bestie, so this is a page from the OpenAFS command reference, and it's about fs_cscpolicy. Fair warning before you even scroll: this one is Windows only πͺ, and it's a little bit of a legacy situation. Let's get into it π
β¨ NAME β¨
fs_cscpolicy β change the client side caching policy for AFS shares, [Windows only] π
β¨ SYNOPSIS β¨
fs cscpolicy [-share sharename [-manual|-programs|-documents|-disable] ]
β¨ DESCRIPTION β¨
so the fs cscpolicy command does two things: it sets the client side caching policy for one specific AFS share, or it shows you a list of the policies. that's it, that's the gig π
one important thing β this command can only change the policy of one share at a time. no bulk edits, sorry bestie π
and out of the policy options <pink>-manual</pink>, <pink>-programs</pink>, <pink>-documents</pink>, and <pink>-disable</pink>, you can pick only one. just one. the default policy is <pink>-manual</pink> β
also!! after you change the policy on a share, you have to close all the applications that accessed files on that share, or restart AFS Client, before the change actually takes effect. no cap, it won't kick in otherwise π«Ά
β οΈ CAUTIONS β οΈ
okay this is the part where I hold your hand, because there's some real stuff here π
- this command is only available on Windows. that's the whole vibe.
- using this functionality is not recommended. like, genuinely. Windows Offline Folders do not work well with AFS, because the AFS server is always present.
- back when this functionality was contributed and incorporated, people believed it was safe for the AFS cache manager to return
BADNETPATHerrors when a single file server or volume was inaccessible. it is now known that returning those errors causes the Microsoft SMB redirector to drop the connection to the AFS server, which results in serious side effects π - this functionality is specific to use with the Microsoft SMB redirector. Client Side Caching (Offline Folders) is built into that driver and will not be present in the native AFS redirector β so this functionality will be removed at a future date. bestie, it's on borrowed time π
ngl, if you were thinking about leaning on this for something important, maybe don't. it's giving deprecated energy.
β¨ OPTIONS β¨
-sharesharename β the name of the share whose policy you're changing. (if you omit it, no share policy gets changed at all β nothing happens, king π )-manualβ specifies manual caching of documents.-programsβ specifies automatic caching of programs and documents.-documentsβ specifies automatic caching of documents.-disableβ disables caching. periodt.
β¨ OUTPUT β¨
when you're changing the policy of a share, you get this:
CSC policy on share "share" changed to "policy".
Close all applications that accessed files on this share or restart AFS Client for the change to take effect.
when you're displaying policies, you get this:
policyname = policy
β¨ EXAMPLES β¨
this one disables all caching on the share "AFS1" π₯
% fs cscpolicy -share AFS1 -disable
and this one displays all the policies currently in effect π
% fs cscpolicy
β¨ PRIVILEGE REQUIRED β¨
the issuer must have AFS Client Administrator access β and yes, that applies whether you're displaying or setting policies. both. no skipping π
plus, to actually change policies, the issuer must be a Windows Administrator, because the policy information is stored in a protected area of the Windows Registry. that's just how it is, iykyk π¦
β¨ COPYRIGHT β¨
this document was written by Mike Robinson, and is released under the IBM Public License Version 1.0. Jeffrey Altman made several corrections, clarifications, and additions π
and that's the whole page, bestie!! π«Ά this dropped as part of OpenAFS on 2026-06-25, and it's FS_CSCPOLICY(1) if you need to cite it in your group chat. go forth and cache responsibly (or like, don't, per the cautions) πβ¨π
π¦ where this page comes from
- nixos 26.05: openafs 1.8.16.1
- nixpkgs unstable: openafs 1.8.16.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms