diff options
author | Rick Macklem <rmacklem@FreeBSD.org> | 2022-08-28 21:24:39 +0000 |
---|---|---|
committer | Rick Macklem <rmacklem@FreeBSD.org> | 2022-08-28 21:24:39 +0000 |
commit | 0685c73cfe88b94d60b1b2ddfdb36c684a008006 (patch) | |
tree | 992caab016644ca8fa90e3c30bac2e0476233e7b | |
parent | 31937f7e843da8be685557d513fc1af58079eda3 (diff) | |
download | src-0685c73cfe88.tar.gz src-0685c73cfe88.zip |
nfscl: Add a console message for session recovery
The NFSv4.1/4.2 client does recovery when it receives a
NFSERR_BADSESSION reply from the server. If the server has
not rebooted, this is often caused by multiple clients using
the same /etc/hostid and, as such, not being recognized as
different clients by the server.
This trivial patch adds a console message to suggest that
client's /etc/hostid's need to be checked for uniqueness.
MFC after: 2 weeks
-rw-r--r-- | sys/fs/nfs/nfs_commonkrpc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/fs/nfs/nfs_commonkrpc.c b/sys/fs/nfs/nfs_commonkrpc.c index 91ebd84fabd0..9badd8be47d4 100644 --- a/sys/fs/nfs/nfs_commonkrpc.c +++ b/sys/fs/nfs/nfs_commonkrpc.c @@ -1131,6 +1131,10 @@ tryagain: sep = NFSMNT_MDSSESSION(nmp); if (bcmp(sep->nfsess_sessionid, nd->nd_sequence, NFSX_V4SESSIONID) == 0) { + printf("Initiate recovery. If server " + "has not rebooted, " + "check NFS clients for unique " + "/etc/hostid's\n"); /* Initiate recovery. */ sep->nfsess_defunct = 1; NFSCL_DEBUG(1, "Marked defunct\n"); |