diff options
author | Jeff Layton <jlayton@redhat.com> | 2008-02-22 14:50:00 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-03-19 18:00:06 -0400 |
commit | 643f81115baca3630e544f6874567648b605efae (patch) | |
tree | a9eaf544811df5474b8fbf655d1e176b9f7bdfc9 /fs/exec.c | |
parent | caa02bd540618e4b447a1f776363ba27c4c79090 (diff) | |
download | op-kernel-dev-643f81115baca3630e544f6874567648b605efae.zip op-kernel-dev-643f81115baca3630e544f6874567648b605efae.tar.gz |
NFS: clean up short packet handling for NFSv3 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 nfs3_xdr_readdirres().
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/exec.c')
0 files changed, 0 insertions, 0 deletions