<div dir="ltr">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.<div>
<br></div><div>Avati</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 26, 2013 at 1:30 PM, Brad Childs <span dir="ltr">&lt;<a href="mailto:bdc@redhat.com" target="_blank">bdc@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Everyone.<br>
<br>
Is there a performant way to do partial count directory listing of a gluster volume through FUSE?<br>
<br>
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&#39;d like a solution that doesn&#39;t troll the server for the entire list then filter it down on the client.<br>

<br>
<br>
<br>
-bc<br>
_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a></blockquote></div><br></div>