[Gluster-users] Performant partial directory listing through FUSE

Brian Candler B.Candler at pobox.com
Sat Apr 27 20:47:38 UTC 2013

On Fri, Apr 26, 2013 at 03:10:03PM -0700, Anand Avati wrote:
>    You can do it just like any other filesystem (not specific to either
>    FUSE or gluster) - getdents()/readdir() a small bunch, either retain
>    the open file descriptor or remember the output of telldir()

    "Values returned by telldir() are good only for
     the lifetime of the DIR pointer (e.g., dirp) from which they are derived.
     If the directory is closed and then reopened, prior values returned by
     telldir() will no longer be valid."

(OSX/BSD manpage)

So you have to keep the open file descriptor anyway.

More information about the Gluster-users mailing list