freebsd-nq/sys/fs
Rick Macklem 57ef3db3a9 Fix the client IP address reported by nfsdumpstate for 64bit arch and NFSv4.1.
The client IP address was not being reported for some NFSv4 mounts by
nfsdumpstate. Upon investigation, two problems were found for mounts
using IPv4. One was that the code (originally written and tested on i386)
assumed that a "u_long" was a "uint32_t" and would exactly store an
IPv4 host address. Not correct for 64bit arches.
Also, for NFSv4.1 mounts, the field was not being filled in. This was
basically correct, because NFSv4.1 does not use a callback address.
However, it meant that nfsdumpstate could not report the client IP addr.
This patch should fix both of these issues.
For IPv6, the address will still not be reported. The original NFSv4 RFC
only specified IPv4 callback addresses. I think this has changed and, if so,
a future commit to fix reporting of IPv6 addresses will be needed.

Reported by:	manu
PR:		223036
MFC after:	2 weeks
2017-10-15 22:22:27 +00:00
..
autofs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
cd9660 Handle _PC_FILESIZEBITS and _PC_SYMLINK_MAX pathconf() requests in cd9660. 2017-10-02 23:12:02 +00:00
cuse Add support for new cuse(3) error code, CUSE_ERR_NO_DEVICE. 2017-10-05 16:42:02 +00:00
deadfs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
devfs Only handle _PC_MAX_CANON, _PC_MAX_INPUT, and _PC_VDISABLE for TTY devices. 2017-09-21 23:05:32 +00:00
ext2fs Add check to avoid raw inode iblocks fields overflow in case of huge_file feature. 2017-09-27 16:12:13 +00:00
fdescfs Implement proper Linux /dev/fd and /proc/self/fd behavior by adding 2017-08-01 03:40:19 +00:00
fifofs Consistently use vop_stdpathconf() for default pathconf values. 2017-07-11 21:55:20 +00:00
fuse Add extended attributes support to fuse kernel module. 2017-10-14 19:02:52 +00:00
msdosfs Style. 2017-08-28 21:04:56 +00:00
nandfs Consistently use vop_stdpathconf() for default pathconf values. 2017-07-11 21:55:20 +00:00
nfs Fix forced dismount when a pNFS mount is hung on a DS. 2017-10-10 21:05:40 +00:00
nfsclient Add Flex File Layout support to the NFSv4.1 pNFS client. 2017-10-05 20:10:40 +00:00
nfsserver Fix the client IP address reported by nfsdumpstate for 64bit arch and NFSv4.1. 2017-10-15 22:22:27 +00:00
nullfs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
procfs remove procfs ctl interface 2017-03-05 03:05:24 +00:00
pseudofs Bump the maximum file name length in pseudofs filesystems to 48. 2017-08-03 21:35:53 +00:00
smbfs Mark pages after EOF as clean after pageout. 2017-07-26 20:07:05 +00:00
tmpfs When unmounting a tmpfs, do not call free_unr. 2017-10-11 21:53:53 +00:00
udf Flesh out pathconf() on UDF. 2017-10-02 23:31:11 +00:00
unionfs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00