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.
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