On Wed, Oct 15, 2014 at 01:26:19PM +0200, Emmanuel Dreyfus wrote:
> Anand Avati <[email protected]> wrote:
> 
> > Is there a way to get hold of the directory entry cookies used by NFS
> > readdir from user-space? some sort of a NetBSD specific syscall (like
> > getdents of Linux)?
> 
> NetBSD has getdents(2) too, but it returns buffer of struct dirent that
> have no NFS cookies. On Linux, getdents(2) returns buffers of struct
> dirent or dirent64, but I see no NFS cookie there either.

On Linux, it's returned in the d_off field.

Googling around....  the NetBSD manpage doesn't mention any d_off field,
but it does have this:

        http://nixdoc.net/man-pages/netbsd/man2/getdents.2.html

        The current position pointer may be set and retrieved by
        lseek(2).  The current position pointer should only be set to a
        value returned by lseek(2), or zero.

So maybe that's what you want.

--b.
_______________________________________________
Gluster-devel mailing list
[email protected]
http://supercolony.gluster.org/mailman/listinfo/gluster-devel

Reply via email to