HP CIFS Opportunistic Locking Usage Guidelines
8
file caching without the risk of data corruption. Veto Oplocks can be enabled on a per -share
basis, or globally for the entire server, in the smb.conf file:
[global]
veto oplock files = /filename.htm/*.txt/
[share_name]
veto oplock files = /*.exe/filename.ext/
oplock break wait time is a smb.conf parameter that adjusts the time interval for Samba to
reply to an oplock break request. Samba recommends “DO NOT CHANGE THIS
PARAMETER UNLESS YOU HAVE READ AND UNDERSTOOD THE SAMBA OPLOCK
CODE.” Oplock Break Wait Time can only be configured globally in the smb.conf file:
[global]
oplock break wait time = 0 (default)
oplock break contention limit is a smb.conf parameter that limits the response of the Samba
server to grant an oplock if the configured number of contending clients reaches the limit
specified by the parameter. Samba recommends “DO NOT CHANGE THIS PARAMETER
UNLESS YOU HAVE READ AND UNDERSTOOD THE SAMBA OPLOCK CODE.” Oplock
Break Contention Limit can be enable on a per-share basis, or globally for the entire server,
in the smb.conf file.
[global]
oplock break contention limit = 2 (default)
[share_name]
oplock break contention limit = 2 (default)