[Bug 253428] getdirentries does not work correctly on NFS mounts

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Feb 11 23:39:34 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253428

--- Comment #3 from Rick Macklem <rmacklem at FreeBSD.org> ---
Ok. I think the best change would be to note that
d_off == 0 can be generated by certain file
systems. such as NFS.
I think a value of 0 for d_off is always meaningless
and should be ignored.

An offset == 0 refers to beginning of directory and would
never refer to a valid "next entry", I think?

Feel free to update the man page, or I may get around
to it someday.

Now that I'm done with NFS over TLS, I am going
to start to work on directory delegations.
For the case of servers that present monotonically
increasing offset cookies, more might be doable
here.
--> I plan on proposing an extension to NFSv4.2
    which is a new attribute to indicate monotonically
    increasing directory offset cookies, because that
    is the only case where the NFS client can implement
    directory delegations.
    --> These allow a directory cache to be updated via
        callbacks with add/remove entry info. from
        a server. No one has implemented these, but
        they might be useful.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-fs mailing list