freebsd-src/sys/nfs
Alan Somers 32fbc5d824 nfs: don't truncate directory cookies to 32-bits in the NFS server
In NFSv2, the directory cookie was 32-bits.  NFSv3 widened it to
64-bits and SVN r22521 widened the corresponding argument in
VOP_READDIR, but FreeBSD's NFS server continued to treat the cookies as
32-bits, and 0-extended to fill the field on the wire.  Nobody ever
noticed, because every in-tree file system generates cookies that fit
comfortably within 32-bits.

Also, have better type safety for txdr_hyper.  Turn it into an inline
function that type-checks its arguments.  Prevents warnings about
shift-count-overflow.

PR:		260375
MFC after:	2 weeks
Reviewed by:	rmacklem
Differential Revision: https://reviews.freebsd.org/D33404
2021-12-15 20:54:57 -07:00
..
bootp_subr.c kernel: partially revert e9efb1125a15, default inet mask 2021-11-14 14:12:25 -06:00
krpc.h
krpc_subr.c spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
nfs_diskless.c nfs: clean up empty lines in .c and .h files 2020-09-01 21:25:39 +00:00
nfs_kdtrace.h nfs: clean up empty lines in .c and .h files 2020-09-01 21:25:39 +00:00
nfs_lock.h sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
nfs_mountcommon.h sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
nfs_nfssvc.c nfs: clean up empty lines in .c and .h files 2020-09-01 21:25:39 +00:00
nfsdiskless.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
nfsproto.h nfs: clean up empty lines in .c and .h files 2020-09-01 21:25:39 +00:00
nfssvc.h Merge the pNFS server code from projects/pnfs-planb-server into head. 2018-06-12 19:36:32 +00:00
xdr_subs.h nfs: don't truncate directory cookies to 32-bits in the NFS server 2021-12-15 20:54:57 -07:00