fuse: support BSD locking semantics
authorMiklos Szeredi <mszeredi@suse.cz>
Thu, 18 Oct 2007 10:07:02 +0000 (03:07 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 18 Oct 2007 21:37:31 +0000 (14:37 -0700)
commita9ff4f87056cd31a8232b88d013dc6c9ad719c18
tree8ddcc01ae8b6615a9a530fb51c52825b315ee266
parent6ff958edbf39c014eb06b65ad25b736be08c4e63
fuse: support BSD locking semantics

It is trivial to add support for flock(2) semantics to the existing protocol,
by setting the lock owner field to the file pointer, and passing a new
FUSE_LK_FLOCK flag with the locking request.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fuse/file.c
include/linux/fuse.h