Performant partial directory listing through FUSE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux