>From Frank Filz <ffilz...@mindspring.com>:

Frank Filz has uploaded this change for review. ( 
https://review.gerrithub.io/357373


Change subject: readdir: Allow for FSALs that can't use a cookie for whence
......................................................................

readdir: Allow for FSALs that can't use a cookie for whence

For some FSALs it's impractical to resume a directory listing using a
cookie. These FSALs however can use the name of the previous dirent.

For these FSALs, for the whence value, we either pass NULL to indicate
start from beginning, or the name (cast to fsal_cookie_t * - the FSAL
will need to re-cast to char *).

If we get a non-zero whence from the protocol layer and we don't have
it cached, we will re-scan the directory from the beginning. We do
skip re-scanning should we have any chunks cached.

Change-Id: I337eefc879a83405be4bc24b7658ee6380d394b3
Signed-off-by: Frank S. Filz <ffilz...@mindspring.com>
---
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_helpers.c
M src/FSAL/fsal_config.c
M src/include/fsal_types.h
3 files changed, 165 insertions(+), 5 deletions(-)



  git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha 
refs/changes/73/357373/1
-- 
To view, visit https://review.gerrithub.io/357373
To unsubscribe, visit https://review.gerrithub.io/settings

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-MessageType: newchange
Gerrit-Change-Id: I337eefc879a83405be4bc24b7658ee6380d394b3
Gerrit-Change-Number: 357373
Gerrit-PatchSet: 1
Gerrit-Owner: Frank Filz <ffilz...@mindspring.com>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to