| 1 |
<samba:parameter name="strict locking" |
| 2 |
context="S" |
| 3 |
type="enum" |
| 4 |
enumlist="enum_bool_auto" |
| 5 |
parm="1" |
| 6 |
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc"> |
| 7 |
<description> |
| 8 |
<para> |
| 9 |
This is an enumerated type that controls the handling of file locking in the server. When this is set to <constant>yes</constant>, |
| 10 |
the server will check every read and write access for file locks, and deny access if locks exist. This can be slow on |
| 11 |
some systems. |
| 12 |
</para> |
| 13 |
|
| 14 |
<para> |
| 15 |
When strict locking is set to Auto (the default), the server performs file lock checks only on non-oplocked files. |
| 16 |
As most Windows redirectors perform file locking checks locally on oplocked files this is a good trade off for |
| 17 |
improved performance. |
| 18 |
</para> |
| 19 |
|
| 20 |
<para> |
| 21 |
When strict locking is disabled, the server performs file lock checks only when the client explicitly asks for them. |
| 22 |
</para> |
| 23 |
|
| 24 |
<para> |
| 25 |
Well-behaved clients always ask for lock checks when it is important. So in the vast majority of cases, |
| 26 |
<command moreinfo="none">strict locking = Auto</command> or |
| 27 |
<command moreinfo="none">strict locking = no</command> is acceptable. |
| 28 |
</para> |
| 29 |
</description> |
| 30 |
<value type="default">Auto</value> |
| 31 |
</samba:parameter> |