Page MenuHomeFreeBSD

update the NFSv4.1/4.2 server's console message indicating that there is no session
ClosedPublic

Authored by rmacklem on Aug 28 2022, 12:09 AM.
Tags
None
Referenced Files
F102409367: D36377.id.diff
Mon, Nov 11, 9:31 PM
Unknown Object (File)
Thu, Nov 7, 4:52 PM
Unknown Object (File)
Tue, Nov 5, 3:34 PM
Unknown Object (File)
Sun, Oct 20, 8:58 AM
Unknown Object (File)
Fri, Oct 18, 10:47 AM
Unknown Object (File)
Thu, Oct 17, 10:03 AM
Unknown Object (File)
Wed, Oct 16, 11:55 PM
Unknown Object (File)
Tue, Oct 15, 4:18 PM
Subscribers

Details

Summary

The NFSv4.1/4.2 server generates a console message that indicates
that there is no session. I was until recently perplexed w.r.t. this
could occur. It turns out that the common cause is multiple NFS
clients with the same /etc/hostid.

The host uuid is used by the FreeBSD NFSv4.1/4.2 client as a unique
identifier for the client. If multiple clients use the same host uuid, this
indicates to the NFSv4.1/4.2 server that they are the same client and
confusion occurs.

This trivial patch changes the console message to suggest that the
client's /etc/hostid needs to be checked for uniqueness.

The review is simply for the wording of this new console message.

Test Plan

A NFSv4.1/4.2 server was modified to throw away the session once
every 100000 RPCs and reply NFSERR_BADSESSION. This was done
primarily to test fixes in the FreeBSD client for this case, but the
message is generated when it happens.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable