]> Git Repo - linux.git/commit - fs/nfs/nfs3xdr.c
NFS: clean up short packet handling for NFSv3 readdir
authorJeff Layton <[email protected]>
Fri, 22 Feb 2008 19:50:00 +0000 (14:50 -0500)
committerTrond Myklebust <[email protected]>
Wed, 19 Mar 2008 22:00:06 +0000 (18:00 -0400)
commit643f81115baca3630e544f6874567648b605efae
treea9eaf544811df5474b8fbf655d1e176b9f7bdfc9
parentcaa02bd540618e4b447a1f776363ba27c4c79090
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 <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
fs/nfs/nfs3xdr.c
This page took 0.051355 seconds and 4 git commands to generate.