Storage glossary · JSON corpus · llms.txt · hesela.com

smb-oplock · shipping · also SMB oplock, SMB opportunistic locking

SMB opportunistic lock

An SMB opportunistic lock is a revocable server-granted caching arrangement that lets a client reduce network operations while coordinating access to a file.

Related Observatory article: SMB opportunistic lock on hesela.com

Oplocks coordinate cache use; they are not application byte-range locks. [1] Classic SMB2 oplock levels and leases have distinct request encodings: a lease requires its create context, and its request level is invalid for SMB 2.0.2. [2] Do not assume every break needs an acknowledgement: the level-II-to-none transition does not. [3] These caching arrangements do not by themselves acknowledge durable data storage.

Relations

related
smb-protocol, smb-lease, smb-byte-range-lock

Citations

  1. Microsoft Win32: Opportunistic Locks (accessed 2026-10-14)
  2. Microsoft MS-SMB2 section 2.2.13: SMB2 CREATE Request (accessed 2026-10-14)
  3. Microsoft MS-SMB2 section 2.2.24.1: Oplock Break Acknowledgment (accessed 2026-10-14)

JSON: /data/terms/smb-oplock.json