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