Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Dec 2021 03:54:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 260375] NFS server truncates directory cookies to 32-bits
Message-ID:  <bug-260375-227-ZLF6UC9hbY@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-260375-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-260375-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260375

--- 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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-260375-227-ZLF6UC9hbY>