Samba also supports
blocking locks, a minor variant of range locks. Here, if the range of bytes is not available, the client specifies an amount of time that it's willing to wait. The server then caches the lock request, periodically checking to see if the file is available. If it is, it notifies the client; however, if time expires, Samba will tell the client that the request has failed. This strategy prevents the client from continually polling to see if the lock is available.
You can disable this option per share as follows:
[accounting]
blocking locks = no
When set to
yes
, blocking locks will be enforced on the file. If this option is set to
no
, Samba behaves as if normal locking mechanisms are in place on the file. The default is
yes
.