summaryrefslogtreecommitdiffstats
path: root/lib/loopdev.c
diff options
context:
space:
mode:
authorPetr Uzel2011-09-15 10:19:17 +0200
committerKarel Zak2011-09-27 15:02:44 +0200
commit87d83b6ad2e52a3c867fe2f758e4eccaea145a10 (patch)
tree8070b155cb22cffecba1338048e18f383e7bbd73 /lib/loopdev.c
parentbuild-sys: add path.h to Makefile.am (diff)
downloadkernel-qcow2-util-linux-87d83b6ad2e52a3c867fe2f758e4eccaea145a10.tar.gz
kernel-qcow2-util-linux-87d83b6ad2e52a3c867fe2f758e4eccaea145a10.tar.xz
kernel-qcow2-util-linux-87d83b6ad2e52a3c867fe2f758e4eccaea145a10.zip
flock: make flock(1) work on NFSv4
To pleace an exclusive lock on a file, NFSv4 requires the file to be opened RW because of the emulation of flock() by fcntl(): http://www.spinics.net/lists/linux-nfs/msg18502.html So instead of O_RDONLY, open the file in O_RDWR if access() indicates it is possible (unless shared lock is requested). From: Michal Kubecek <mkubecek@suse.cz> Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Diffstat (limited to 'lib/loopdev.c')
0 files changed, 0 insertions, 0 deletions