git: 9e4e3a448ca9 - stable/13 - nfscl: Improve the console message for NFSERR_NOFILEHANDLE
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 29 Dec 2022 01:13:42 UTC
The branch stable/13 has been updated by rmacklem: URL: https://cgit.FreeBSD.org/src/commit/?id=9e4e3a448ca902d928e342a53282aedc66eb0823 commit 9e4e3a448ca902d928e342a53282aedc66eb0823 Author: Rick Macklem <rmacklem@FreeBSD.org> AuthorDate: 2022-12-22 17:35:15 +0000 Commit: Rick Macklem <rmacklem@FreeBSD.org> CommitDate: 2022-12-29 01:12:44 +0000 nfscl: Improve the console message for NFSERR_NOFILEHANDLE Since a NFSERR_NOFILEHANDLE reply from an NFSv4 server usually means that the file system is not exported on the server, change the console log message to indicate that. (cherry picked from commit 6032cf3d6fb5d2e81ff463400bc0c6c8e00b3c3f) --- sys/fs/nfsclient/nfs_clport.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/fs/nfsclient/nfs_clport.c b/sys/fs/nfsclient/nfs_clport.c index 2e6726f604d4..d530b848431e 100644 --- a/sys/fs/nfsclient/nfs_clport.c +++ b/sys/fs/nfsclient/nfs_clport.c @@ -1180,7 +1180,6 @@ nfscl_maperr(struct thread *td, int error, uid_t uid, gid_t gid) case NFSERR_FHEXPIRED: case NFSERR_RESOURCE: case NFSERR_MOVED: - case NFSERR_NOFILEHANDLE: case NFSERR_MINORVERMISMATCH: case NFSERR_OLDSTATEID: case NFSERR_BADSEQID: @@ -1191,6 +1190,10 @@ nfscl_maperr(struct thread *td, int error, uid_t uid, gid_t gid) printf("nfsv4 client/server protocol prob err=%d\n", error); return (EIO); + case NFSERR_NOFILEHANDLE: + printf("nfsv4 no file handle: usually means the file " + "system is not exported on the NFSv4 server\n"); + return (EIO); default: tprintf(p, LOG_INFO, "nfsv4 err=%d\n", error); return (EIO);