Kinglong Mee has uploaded this change for review.

View Change

FSAL_GLUSTER: supports caching dirfd in globalfd as regular file fd

Ganesha only returns 120/50 entries for a nfs readdir/readdirplus request.
For uncached directory entries, a NFS readdir is translated to
opendir/readdir/closedir glusterfs fops.

A glusterfs readdir fops may gets 700+ entries, but ganesha only
uses 120/50 entries, the left 600 are dropped at closedir.

This patch caches dirfd in globalfd as regular file fd,
the opendir/closedir is not exist and the left 600 entries can be used.

Change-Id: I9a97612a4115c14d6b27e91258ec7f047ab81c97
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
---
M src/FSAL/FSAL_GLUSTER/gluster_internal.h
M src/FSAL/FSAL_GLUSTER/handle.c
M src/include/fsal.h
3 files changed, 49 insertions(+), 34 deletions(-)

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

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

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9a97612a4115c14d6b27e91258ec7f047ab81c97
Gerrit-Change-Number: 432264
Gerrit-PatchSet: 1
Gerrit-Owner: Kinglong Mee <kinglongmee@gmail.com>