2004-04-07 14:15:11 +04:00
<samba:parameter name= "veto oplock files"
context="S"
2015-05-01 00:32:45 +03:00
type="string"
2019-11-04 14:30:58 +03:00
substitution="1"
2005-03-13 01:41:20 +03:00
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
2004-04-07 14:15:11 +04:00
<description >
2005-08-25 20:49:40 +04:00
<para >
This parameter is only valid when the <smbconfoption name= "oplocks" />
2004-04-07 14:15:11 +04:00
parameter is turned on for a share. It allows the Samba administrator
to selectively turn off the granting of oplocks on selected files that
match a wildcarded list, similar to the wildcarded list used in the
2005-08-25 20:49:40 +04:00
<smbconfoption name= "veto files" /> parameter.
</para>
2004-04-07 14:15:11 +04:00
2005-08-25 20:49:40 +04:00
<para >
You might want to do this on files that you know will be heavily contended
for by clients. A good example of this is in the NetBench SMB benchmark
program, which causes heavy client contention for files ending in
<filename moreinfo= "none" > .SEM</filename> . To cause Samba not to grant
oplocks on these files you would use the line (either in the [global]
section or in the section for the particular NetBench share.
</para>
2005-07-06 08:05:49 +04:00
<para >
An example of use is:
2005-08-25 20:49:40 +04:00
<programlisting >
2005-07-06 08:05:49 +04:00
veto oplock files = /.*SEM/
2005-08-25 20:49:40 +04:00
</programlisting>
2005-07-06 08:05:49 +04:00
</para>
2004-04-07 14:15:11 +04:00
</description>
<value type= "default" > <comment > No files are vetoed for oplock grants</comment> </value>
</samba:parameter>