]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] knfsd: check error status from vfs_getattr and i_op->fsync
authorDavid Shaw <dshaw@jabberwocky.com>
Fri, 6 Jan 2006 08:19:58 +0000 (00:19 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:33:59 +0000 (08:33 -0800)
commit5b0e4029050e21f18c1c557fa3a7140979bc9b0e
tree21749c30159b1e0bf4cae7e174ec1bdcf3859ef4
parent188b7cff1682b240331bc59aa356aac1a57fc8bc
[PATCH] knfsd: check error status from vfs_getattr and i_op->fsync

Both vfs_getattr and i_op->fsync return error statuses which nfsd was
largely ignoring.  This as noticed when exporting directories using fuse.

This patch cleans up most of the offences, which involves moving the call
to vfs_getattr out of the xdr encoding routines (where it is too late to
report an error) into the main NFS procedure handling routines.

There is still a called to vfs_gettattr (related to the ACL code) where the
status is ignored, and called to nfsd_sync_dir don't check return status
either.

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/nfs3proc.c
fs/nfsd/nfs3xdr.c
fs/nfsd/nfsxdr.c
fs/nfsd/vfs.c
include/linux/nfsd/xdr.h
include/linux/nfsd/xdr3.h