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

smb-byte-range-lock · shipping · also SMB range lock

SMB byte-range lock

An SMB byte-range lock coordinates access to a specified region of a file through shared or exclusive locking associated with a file open.

Related Observatory article: SMB byte-range lock on hesela.com

SMB2 ties the lock to its FileId; the client must resolve conflicts between processes on the same client. [1] Shared locks allow reading and compatible shared locks, but no open may write in the range; exclusive locks exclude other opens from reading, writing or locking it. Unlock must match the original range, not a subrange. [2] This is distinct from cache coordination, although a WRITE-caching lease can also cache byte-range locks. [3] Lock success alone is not a stable-write acknowledgement.

Relations

related
smb-protocol, smb-lease, smb-oplock

Citations

  1. Microsoft MS-SMB2 section 2.2.26: SMB2 LOCK Request (accessed 2026-10-14)
  2. Microsoft MS-SMB2 section 2.2.26.1: SMB2_LOCK_ELEMENT Structure (accessed 2026-10-14)
  3. Microsoft MS-SMB2 section 3.2.1.5: Per Open File (accessed 2026-10-14)

JSON: /data/terms/smb-byte-range-lock.json