diff options
author | Dean Deng <deandeng@google.com> | 2020-01-17 08:10:14 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-01-17 08:11:52 -0800 |
commit | 345df7cab48ac79bccf2620900cd972b3026296d (patch) | |
tree | 5f3f206fd1a56853daeb9401c074077e6e1f5842 /pkg/sentry/fs | |
parent | 19b4653147c8ec1cd2cf6e2a8f9bfc7865a5f850 (diff) |
Add explanation for implementation of BSD full file locks.
PiperOrigin-RevId: 290272560
Diffstat (limited to 'pkg/sentry/fs')
-rw-r--r-- | pkg/sentry/fs/lock/lock.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/sentry/fs/lock/lock.go b/pkg/sentry/fs/lock/lock.go index 41b040818..926538d90 100644 --- a/pkg/sentry/fs/lock/lock.go +++ b/pkg/sentry/fs/lock/lock.go @@ -78,6 +78,9 @@ const ( ) // LockEOF is the maximal possible end of a regional file lock. +// +// A BSD-style full file lock can be represented as a regional file lock from +// offset 0 to LockEOF. const LockEOF = math.MaxUint64 // Lock is a regional file lock. It consists of either a single writer |