[Bug 260375] NFS server truncates directory cookies to 32-bits
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 260375] NFS server truncates directory cookies to 32-bits"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 13 Dec 2021 04:04:04 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260375 --- Comment #2 from Alan Somers <asomers@FreeBSD.org> --- I don't think that changing the signature of VOP_READDIR is necessary to fix the NFS server. On architectures where u_long is 32-bits, the NFS server will simply 0-extend it to 64-bits before placing it on the wire. OTOH, ever since the ino64 project added a d_off field to struct dirent, I think the cookies array is redundant. We could remove it entirely from VOP_READDIR, and just populate the NFS cookie from d_off. That's 64-bits on all architectures. -- You are receiving this mail because: You are the assignee for the bug.