8Jul/090
Enable opportunistic locking with Sun SMB service on Solaris Nevada
The primary reason for implementing this is performance.
From Microsoft:
Opportunistic locking (oplock) is a mechanism that allows a server to tell a client process that a requested file is only being used by that process. The client can safely do read-ahead and write-behind as well as local caching, knowing that the file will not be accessed or changed in any way by another process while the opportunistic lock is in effect. The server notifies the client when a second process attempts to open or modify the locked file.
Reference: http://msdn.microsoft.com/en-us/library/dd327670.aspx
The snippet:
svccfg -s smb/server setprop smbd/oplock_enable=boolean: true