Granting Oplocks

The server SHOULD grant oplocks according to the process specified in [MS-CIFS] section, with the following additions:

  • If Server.Share.ShareFlags contains the SHI1005_FLAGS_FORCE_LEVELII_OPLOCK bit as defined in [MS-SRVS] section, and the request is for NT_CREATE_REQUEST_OPLOCK or NT_CREATE_REQUEST_OPBATCH oplock, the server SHOULD<107> downgrade the request and grant a level II oplock.