[Gluster-users] Performant partial directory listing through FUSE
Anand Avati
anand.avati at gmail.com
Fri Apr 26 22:10:03 UTC 2013
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 <bdc at redhat.com> 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
> Gluster-users at gluster.org
> http://supercolony.gluster.org/mailman/listinfo/gluster-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20130426/b5b63810/attachment.html>
More information about the Gluster-users
mailing list