]> err.no Git - linux-2.6/commit
[PATCH] knfsd: Provide missing NFSv2 part of patch for checking vfs_getattr.
authorDavid Shaw <dshaw@jabberwocky.com>
Thu, 19 Jan 2006 01:43:51 +0000 (17:43 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 19 Jan 2006 03:20:28 +0000 (19:20 -0800)
commit846f2fcd77850ef8f0aab46df9cadd5c35a5fef0
tree45fec50c1f597c2aa3b0aa731f00b9d24c9aa668
parent45bd3b3dffaa9fb1706fe001bf66276d0997a850
[PATCH] knfsd: Provide missing NFSv2 part of patch for checking vfs_getattr.

A recent patch which checked the return status of vfs_getattr in nfsd,
completely missed the nfsproc.c (NFSv2) part.  Here is it.

This patch moved the call to vfs_getattr from the xdr encoding (at which point
it is too late to return an error) to the call handling.  This means several
calls to vfs_getattr are needed in nfsproc.c.  Many are encapsulated in
nfsd_return_attrs and nfsd_return_dirop.

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/nfsproc.c