gpfs:leases
Understand the scenarios in which gpfs:leases are enabled or disabled.
gpfs:leases are enabled by default when an SMB export is created. When enabled, it specifies that clients, which access the file over other NAS protocols, can break the opportunistic lock of an SMB client. This feature informs the SMB client when another client is accessing the same file at the same time through a non-SMB protocol.
Disabling this feature provides a slight increase in performance each time that a file is opened. You can only disable this option if the files are exclusively accessed via SMB. You risk data corruption otherwise. If only the SMB layer manages oplocks, the overhead of keeping them in sync with the core file system is saved.
gpfs:leases can be disabled for a particular SMB export by specifying
the
--option "posix:locking"=no
option on the createor
changesubcommands in the mmsmb command.