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(), and later either use
the save filed descriptor or issue seekdir() to the cookie returned by
telldir(), and resume further getdents() /readdir() bunch.

Avati


On Fri, Apr 26, 2013 at 1:30 PM, Brad Childs <[email protected]> wrote:

> Hello Everyone.
>
> Is there a performant way to do partial count directory listing of a
> gluster volume through FUSE?
>
> Say I have a directory with 1 billion entries, is there a way to only
> retrieve the 0..N, then N+1..2N?  I know I can do this with basic grepping,
> but i'd like a solution that doesn't troll the server for the entire list
> then filter it down on the client.
>
>
>
> -bc
> _______________________________________________
> Gluster-users mailing list
> [email protected]
> http://supercolony.gluster.org/mailman/listinfo/gluster-users
_______________________________________________
Gluster-users mailing list
[email protected]
http://supercolony.gluster.org/mailman/listinfo/gluster-users

Reply via email to