Frank Filz has uploaded this change for review.

View Change

WIP Make NFSv3 READDIR use xdr_putbuffs

Encode all the directory entries into an xdrmem buffer that can then
be added to the ioq via xdr_putbufs.

We also do a more exact calulation of the space available for the
directory entries so significantly more entries can be returned
if the entries are small.

NOTE: At the moment, this triggers an error in ntirpc because it
tries to add entries to the xdrmem buffer until there is a problem
with them fitting. xdr_string_encode logs an error if putting the
length of the name into the buffer fails.

Change-Id: I456cfd7dd6cf3efd129c9657844878660a140434
Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
---
M src/Protocols/NFS/nfs3_readdirplus.c
M src/Protocols/XDR/xdr_nfs23.c
M src/include/nfs23.h
3 files changed, 169 insertions(+), 104 deletions(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/92/469192/1

To view, visit change 469192. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I456cfd7dd6cf3efd129c9657844878660a140434
Gerrit-Change-Number: 469192
Gerrit-PatchSet: 1
Gerrit-Owner: Frank Filz <ffilzlnx@mindspring.com>
Gerrit-MessageType: newchange