flock.2: Placing an exclusive lock over NFS requires the file is open for writing

Reported-by: Petr Uzel <petr.uzel@suse.cz>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-10-03 15:28:59 +02:00
parent 3b53a603c4
commit ff8bc61434
1 changed files with 2 additions and 0 deletions

View File

@ -223,6 +223,8 @@ and
locks
.I do
interact with one another over NFS.
It also means that in order to place an exclusive lock,
the file must be opened for writing.
.PP
Since Linux 2.6.37,
.\" commit 5eebde23223aeb0ad2d9e3be6590ff8bbfab0fc2