summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs3xdr.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2008-02-22 14:49:59 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2008-03-19 18:00:03 -0400
commitcaa02bd540618e4b447a1f776363ba27c4c79090 (patch)
tree08e275f99c4b049d17ed4f202c0d7e7c5bc56813 /fs/nfs/nfs3xdr.c
parent4af68bffac444a23f027e18ff244101e63b79227 (diff)
downloadop-kernel-dev-caa02bd540618e4b447a1f776363ba27c4c79090.zip
op-kernel-dev-caa02bd540618e4b447a1f776363ba27c4c79090.tar.gz
NFS: clean up short packet handling for NFSv2 readdir
Currently, the NFS readdir decoders have a workaround for buggy servers that send an empty readdir response with the EOF bit unset. If the server sends a malformed response in some cases, this workaround kicks in and just returns an empty response rather than returning a proper error to the caller. This patch does 3 things: 1) have malformed responses with no entries return error (-EIO) 2) preserve existing workaround for servers that send empty responses with the EOF marker unset. 3) Add some comments to clarify the logic in nfs_xdr_readdirres(). Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs3xdr.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud