Add explanation for implementation of BSD full file locks.

PiperOrigin-RevId: 290272560
This commit is contained in:
Dean Deng
2020-01-17 08:11:52 -08:00
committed by gVisor bot
parent 19b4653147
commit 345df7cab4
+3
View File
@@ -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