]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] knfsd: fix return value for writes to some files in 'nfsd' filesystem
authorNeilBrown <neilb@suse.de>
Wed, 14 Feb 2007 08:33:11 +0000 (00:33 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 14 Feb 2007 16:09:53 +0000 (08:09 -0800)
commit8971a1016b9db4164c3c1b47ae1fde2818becf91
tree8660185a73de37b3c590e39be15b874c190b858b
parent754ce4f29937ba11f16afa41a648a30b0fc1f075
[PATCH] knfsd: fix return value for writes to some files in 'nfsd' filesystem

Most files in the 'nfsd' filesystem are transactional.  When you write, a
reply is generated that can be read back only on the same 'file'.

If the reply has zero length, the 'write' will incorrectly return a value of
'0' instead of the length that was written.  This causes 'rpc.nfsd' to give an
annoying warning.

This patch fixes the test.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/nfsd/nfsctl.c