diff options
author | Jeff Layton <jlayton@redhat.com> | 2008-02-22 20:50:01 +0100 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-03-19 23:00:10 +0100 |
commit | 7bda2cdf484a00e52b0ed925e99d4bf4696b2c7a (patch) | |
tree | 021f419b3007a8f300959c974ae40e609672deee /fs/nfs/nfs2xdr.c | |
parent | NFS: clean up short packet handling for NFSv3 readdir (diff) | |
download | linux-7bda2cdf484a00e52b0ed925e99d4bf4696b2c7a.tar.xz linux-7bda2cdf484a00e52b0ed925e99d4bf4696b2c7a.zip |
NFS: clean up short packet handling for NFSv4 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 decode_readdir().
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs2xdr.c')
0 files changed, 0 insertions, 0 deletions