This option enables or disables support for oplocks on the client. The option is enabled by default. However, you can disable it with the following command:
[data]
oplocks = no
If you are in an extremely unstable network environment or have many clients that cannot take advantage of opportunistic locking, it may be better to shut this Samba feature off. Oplocks should be disabled if you are accessing the same files from both Unix applications (such as
vi ) and SMB clients (unless you are lucky enough to have an operating system that supports kernel oplocks as discussed earlier).