More fixups.
[Samba.git] / docs / smbdotconf / filename / vetooplockfiles.xml
blobb5ef0df5a6ec73fd6ffcf0a334ec7ada8195ae13
1 <samba:parameter name="veto oplock files"
2                  context="S"
3                                  type="string"
4                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
5  <description>
6         <para>This parameter is only valid when the 
7                         <smbconfoption name="oplocks"/>
8         parameter is turned on for a share. It allows the Samba administrator
9         to selectively turn off the granting of oplocks on selected files that
10         match a wildcarded list, similar to the wildcarded list used in the
11         <smbconfoption name="veto files"/> 
12         parameter.</para>
15         <para>You might want to do this on files that you know will 
16         be heavily contended for by clients. A good example of this 
17         is in the NetBench SMB benchmark program, which causes heavy 
18         client contention for files ending in <filename moreinfo="none">.SEM</filename>. 
19         To cause Samba not to grant oplocks on these files you would use 
20         the line (either in the [global] section or in the section for 
21         the particular NetBench share :</para>
23         <para>
24         An example of use is:
25 <screen>
26 veto oplock files = /.*SEM/
27 </screen>
28         </para>
29 </description>
30 <value type="default"><comment>No files are vetoed for oplock grants</comment></value>
31 </samba:parameter>