]> git.ipfire.org Git - thirdparty/linux.git/commit
nfsd: Fill NFSv4.1 server implementation fields in OP_EXCHANGE_ID response
authorPali Rohár <pali@kernel.org>
Sat, 5 Oct 2024 18:33:49 +0000 (20:33 +0200)
committerChuck Lever <chuck.lever@oracle.com>
Tue, 19 Nov 2024 01:22:58 +0000 (20:22 -0500)
commit600020927b004f027e737e6bf57c450d48f2405e
tree043198a301d83719c2ce7cbf91c079a89ccecdb4
parent2dc84a75229c37e350dd1a83aaf4a63dc2ba86f3
nfsd: Fill NFSv4.1 server implementation fields in OP_EXCHANGE_ID response

NFSv4.1 OP_EXCHANGE_ID response from server may contain server
implementation details (domain, name and build time) in optional
nfs_impl_id4 field. Currently nfsd does not fill this field.

Send these information in NFSv4.1 OP_EXCHANGE_ID response. Fill them with
the same values as what is Linux NFSv4.1 client doing. Domain is hardcoded
to "kernel.org", name is composed in the same way as "uname -srvm" output
and build time is hardcoded to zeros.

NFSv4.1 client and server implementation fields are useful for statistic
purposes or for identifying type of clients and servers.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4proc.c
fs/nfsd/nfs4state.c
fs/nfsd/nfs4xdr.c
fs/nfsd/xdr4.h