Use the commands in this section to enable or disable opportunistic locking (oplocks) for NSS volumes.
OpLocks are a type of client caching that manages concurrent read access to files. There is no real lock on the file. NSS implements two types of client caching: Level 1 and Level 2. For Level 1, only one client has the file open. When a second client opens the file, the oplock is broken, or if the client does not respond to the oplock break request, the oplock is broken for it. The client can then request a Level 2 oplock that can be shared by multiple clients as long as they send only read access requests to the file. When any of the clients send a write operation, the Level 2 oplock is automatically broken.
Allow or disallow level 2 (shared) OpLocks.
Default: On
Examples
nss /Level2OpLocksEnabled=volumename
nss /NoLevel2OpLocksEnabled=volumename