summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-01-17 16:24:15 +0000
committergVisor bot <gvisor-bot@google.com>2020-01-17 16:24:15 +0000
commit13063f7c240b4860a8ac1d3d91f6d34a76f880f9 (patch)
treebe2e6f120ce621443972268e36028144194afcd6 /pkg
parent8a9468aafb6a8a175f246214dad42bc0f80ea162 (diff)
parent345df7cab48ac79bccf2620900cd972b3026296d (diff)
Merge release-20200115.0-18-g345df7c (automated)
Diffstat (limited to 'pkg')
-rw-r--r--pkg/sentry/fs/lock/lock.go3
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