]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit98b1401fb13f5138b49eae2594bd567c39bd1809
tree8d85908a36485df0c80de2032e7fcfa493621fe4
parent0213eb3822d4967b1946c3663f94f66312860433
[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