]> git.baikalelectronics.ru Git - kernel.git/commit
fuse: fix flock breakage
authorMiklos Szeredi <mszeredi@suse.cz>
Mon, 12 Sep 2011 07:31:49 +0000 (09:31 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 12 Sep 2011 18:47:10 +0000 (11:47 -0700)
commitc5d8c74599a889ef35e990cf73b6fea2f31fbb1c
tree52b9668b53f7d12342984be55b96e5784383a4ae
parenta2a086c9b5f3ce05a4ebf2f75d3b5c3814e5eb8c
fuse: fix flock breakage

Commit c9a7e8344d ("fuse: fix flock") added in 3.1-rc4 caused flock() to
fail with ENOSYS with the kernel ABI version 7.16 or earlier.

Fix by falling back to testing FUSE_POSIX_LOCKS for ABI versions 7.16
and earlier.

Reported-by: Martin Ziegler <ziegler@email.mathematik.uni-freiburg.de>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Tested-by: Martin Ziegler <ziegler@email.mathematik.uni-freiburg.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fuse/inode.c