FBSD: Accommodate 12.0's 64-bit inodes 54/13854/9
authorTim Creech <tcreech@tcreech.com>
Fri, 30 Aug 2019 01:35:36 +0000 (21:35 -0400)
committerBenjamin Kaduk <kaduk@mit.edu>
Thu, 11 Mar 2021 22:29:05 +0000 (17:29 -0500)
commit14cbd02b8a1a4f1d3c30dd4fb2864d35f39a95eb
tree7d3828a77bfafe27a938940890587f4723f2be3b
parentc0b7367253eb6c346d577e099a0b0172d4d24ff3
FBSD: Accommodate 12.0's 64-bit inodes

In FreeBSD 12 (see: https://reviews.freebsd.org/rS318736), the layout
of struct dirent changed to allow for 64-bit inodes and a few other
changes. Update our struct min_direct to accommodate, to allow our
readdir() results to be accurate. Without this, readdir() can yield
garbage entries, due to the mismatch in the structure definitions.

Change-Id: I36c2bf1f35b4d1ab61a2b4d51da7514827b3551b
Reviewed-on: https://gerrit.openafs.org/13854
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/afs/VNOPS/afs_vnop_readdir.c