Add ->flock() operation to low and high level interfaces
commit8edeaa3f29b418f621542c72d77ba0c639e6d457
authorMiklos Szeredi <mszeredi@suse.cz>
Wed, 6 Jul 2011 10:12:01 +0000 (6 12:12 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Wed, 6 Jul 2011 10:12:01 +0000 (6 12:12 +0200)
tree2ed1297e688d1f37c7b92ce09dfb38025066900c
parentc605b5f73c458eeacdb6653e6899b5ebe7f1fc1a
Add ->flock() operation to low and high level interfaces

This fixes problems with emulating flock() with POSIX locking.
Reported by Sebastian Pipping.

As with lock/setlk/getlk most filesystems don't need to implement
this, as the kernel takes care of file locking.  The only reason to
implement locking operations is for network filesystems which want
file locking to work between clients.
ChangeLog
example/fusexmp_fh.c
include/fuse.h
include/fuse_common.h
include/fuse_kernel.h
include/fuse_lowlevel.h
lib/fuse.c
lib/fuse_i.h
lib/fuse_lowlevel.c
lib/modules/iconv.c
lib/modules/subdir.c