Jeff Layton 7bda2cdf48 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>
2008-03-19 18:00:10 -04:00
..
2008-02-20 16:15:44 -05:00
2008-02-20 16:15:44 -05:00
2008-01-30 02:06:02 -05:00
2008-02-20 16:15:44 -05:00
2008-03-08 11:49:24 -05:00
2006-03-20 13:44:48 -05:00
2008-02-14 21:13:33 -08:00
2007-03-16 19:25:05 -07:00
2008-03-19 17:59:56 -04:00