Mathias Kresin 5d0b180f79 tools: flock: add NFSv4 compatibility
This patch fixes the LEDE build on mounted NFSv4 shares.

The lock file cannot be opened in read-write mode by default, because
then we cannot use flock(1) to lock executable files.

The read-write mode for lock files is necessary on NFSv4 where
flock(2) is emulated by by fcntl() -- this situation is possible to
detect by flock(2) EBADF error.

The patch consist of the following util-linux/flock commits

http://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=eb742a1f66d5e3a7c5b43efce741c113f51bef3b

http://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=caf1ba11a367ad702fb774653daf9ebdcca49d7b

without including the pre kernel 3.4 support.

Signed-off-by: Mathias Kresin <dev@kresin.me>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [minor cleanup]
2016-08-11 10:50:10 +02:00
..
2015-03-24 13:13:01 +00:00
2015-06-06 13:48:57 +00:00
2015-11-03 12:00:04 +00:00
2013-12-15 21:07:32 +00:00
2016-07-13 22:59:00 +02:00
2016-03-16 09:26:51 +00:00
2016-02-08 08:25:46 +00:00
2016-07-15 14:17:16 +02:00
2016-08-04 18:19:46 +02:00
2015-02-06 00:00:43 +00:00
2016-03-10 19:11:32 +00:00
2015-11-03 11:59:35 +00:00
2016-04-17 12:52:17 +00:00
2015-12-05 15:44:58 +00:00
2015-10-11 16:23:11 +00:00
2015-09-26 21:10:37 +00:00
2013-12-15 21:07:34 +00:00
2015-02-06 00:00:43 +00:00
2015-11-21 21:26:06 +00:00
2015-09-21 21:08:08 +00:00
2015-05-04 13:22:17 +00:00
2015-12-11 15:07:28 +00:00
2015-02-06 00:00:43 +00:00
2015-10-30 22:31:09 +00:00