posix:locking
Understand the scenarios in which posix:locking is enabled or disabled.
posix:locking is enabled by default when an SMB export is created. When enabled, it determines whether a byte range file control lock is already present on the requested portion of the file when a byte range lock is granted to an SMB client.
Clients accessing the same file that uses another NAS protocol, such as NFS, are able to determine whether an SMB export sets a lock on that file.
If an export is accessed only by an SMB export, disable the inter-protocol level byte-range locking to enhance the serving performance of the SMB export.
Locking is disabled for a particular SMB export at the Inter-protocol level by specifying
the
--option "posix:locking"=no
option on the createor
changesubcommands in the mmsmb command.