]> xenbits.xensource.com Git - people/royger/freebsd.git/commit
Change VOP_READDIR's cookies argument to a **uint64_t
authorAlan Somers <asomers@FreeBSD.org>
Tue, 14 Dec 2021 02:37:27 +0000 (19:37 -0700)
committerAlan Somers <asomers@FreeBSD.org>
Thu, 16 Dec 2021 03:54:57 +0000 (20:54 -0700)
commitb214fcceacad6b842545150664bd2695c1c2b34f
tree52b08274866d6f77ff16025bd63f6c1bd598c50f
parent32fbc5d824f51f97220bc5c61a23e0bf3ff2b470
Change VOP_READDIR's cookies argument to a **uint64_t

The cookies argument is only used by the NFS server.  NFSv2 defines the
cookie as 32 bits on the wire, but NFSv3 increased it to 64 bits.  Our
VOP_READDIR, however, has always defined it as u_long, which is 32 bits
on some architectures.  Change it to 64 bits on all architectures.  This
doesn't matter for any in-tree file systems, but it matters for some
FUSE file systems that use 64-bit directory cookies.

PR:             260375
Reviewed by:    rmacklem
Differential Revision: https://reviews.freebsd.org/D33404
20 files changed:
share/man/man9/VOP_READDIR.9
sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops_os.c
sys/fs/cd9660/cd9660_vnops.c
sys/fs/ext2fs/ext2_lookup.c
sys/fs/fuse/fuse_internal.c
sys/fs/fuse/fuse_internal.h
sys/fs/fuse/fuse_vnops.c
sys/fs/msdosfs/msdosfs_vnops.c
sys/fs/nfsserver/nfs_nfsdport.c
sys/fs/smbfs/smbfs_vnops.c
sys/fs/tmpfs/tmpfs.h
sys/fs/tmpfs/tmpfs_subr.c
sys/fs/tmpfs/tmpfs_vnops.c
sys/fs/udf/udf_vnops.c
sys/fs/unionfs/union_vnops.c
sys/kern/uipc_mqueue.c
sys/kern/vfs_subr.c
sys/kern/vnode_if.src
sys/sys/param.h
sys/ufs/ufs/ufs_vnops.c