[PATCH] fuse: add POSIX file locking support
authorMiklos Szeredi <miklos@szeredi.hu>
Sun, 25 Jun 2006 12:48:52 +0000 (05:48 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 25 Jun 2006 17:01:19 +0000 (10:01 -0700)
commit7142125937e1482ad3ae4366594c6586153dfc86
tree8d85908a36485df0c80de2032e7fcfa493621fe4
parentbafa96541b250a7051e3fbc5de6e8369daf8ffec
[PATCH] fuse: add POSIX file locking support

This patch adds POSIX file locking support to the fuse interface.

This implementation doesn't keep any locking state in kernel.  Unlocking on
close() is handled by the FLUSH message, which now contains the lock owner id.

Mandatory locking is not supported.  The filesystem may enfoce mandatory
locking in userspace if needed.

Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/fuse/file.c
fs/fuse/fuse_i.h
fs/fuse/inode.c
include/linux/fuse.h