]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] nfsd4_lock() returns bogus values to clients
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 19 Jan 2006 01:43:48 +0000 (17:43 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 19 Jan 2006 03:20:28 +0000 (19:20 -0800)
commitb1fcca20e91cd7f1fbca634512c2d3bb8dc47f63
tree6a2b08da2310c5dc5b57b11558ecc09ebd6ecba7
parentaeedafb41dc608a2be7469a0bef1a16bb8e1c784
[PATCH] nfsd4_lock() returns bogus values to clients

missing nfserrno() in default case of a switch by return value of
posix_lock_file(); as the result we send negative host-endian to clients that
expect positive network-endian, preferably mentioned in RFC...  BTW, that case
is not impossible - posix_lock_file() can return -ENOLCK and we do not handle
that one explicitly.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/nfsd/nfs4state.c