[Bug 260375] NFS server truncates directory cookies to 32-bits

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 13 Dec 2021 03:54:25 UTC

--- Comment #1 from Rick Macklem <rmacklem@FreeBSD.org> ---
The last argument to VOP_READDIR() returns the cookies
for a given local file system. The type is "u_long **" and
for some architectures u_long is 32bits (I think?).

Also, for NFSv2, the directory offset cookie is only
32bits. Admittedly, NFSv2 is not used much any more and
it could be 64bits for NFSv3, NFSV4.

Maybe VOP_READDIR() should be revised to return a
"uint64_t **" cookie list?

Do you feel like doing that? It means messing with all
the in tree file systems, at least a little bit.

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