Wick.Protocol.Request.FileLock (wick v0.1.0)

Copy Markdown View Source

fuse_file_lock (24 bytes) — embedded in GetLk / SetLk requests and the matching GetLkReply. start / end are byte-range bounds (ignored for FLOCK semantics). type is one of 0 (F_RDLCK) / 1 (F_WRLCK) / 2 (F_UNLCK). pid is the requesting process id (kernel fills it for us; we echo it in GetLk replies).

Summary

Types

t()

@type t() :: %Wick.Protocol.Request.FileLock{
  end: non_neg_integer(),
  pid: non_neg_integer(),
  start: non_neg_integer(),
  type: non_neg_integer()
}