Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Dec 2021 04:04:04 +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-7KWQ88ZvcZ@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 #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 w=
ill
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.

--=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-7KWQ88ZvcZ>