CIFS oplocks (opportunistic locks) enable the redirector on a CIFS client in certain file-sharing scenarios to perform client-side caching of read-ahead, write-behind, and lock information. A client can then work with a file (read or write it) without regularly reminding the server that it needs access to the file in question. This improves performance by reducing network traffic.
For more information on CIFS oplocks, see the CIFS section of the File Access and Protocols Management Guide.
CIFS oplocks on the storage system are on by default.
You might turn CIFS oplocks off on a volume or a qtree under either of the following circumstances:
Otherwise, you can leave CIFS oplocks on.
The cifs.oplocks.enable option enables and disables CIFS oplocks for the entire storage system.
Setting the cifs.oplocks.enable option has the following effects:
To enable CIFS opslocks for a specific volume or a qtree, complete the following steps.
To enable CIFS oplocks on the proj1 qtree in vol2, use the following commands:
system1> options cifs.oplocks.enable on
system1> qtree oplocks /vol/vol2/proj enable
To disable CIFS opslocks for a specific volume or a qtree, complete the following steps.
Attention
If you disable the CIFS oplocks feature on a volume or a qtree, any existing CIFS oplocks in the qtree will be broken.
To disable CIFS oplocks on the proj1 qtree in vol2, use the following command:
qtree oplocks /vol/vol2/proj disable
Copyright © 1994-2005, Network Appliance, Inc. All rights
reserved.
Part No. 210-01085_B0
File: 7qtree7.htm
Last updated: 01-Dec-2005 16:51:43