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. MFC after: 1 week
This commit is contained in:
parent
c7a0637417
commit
6032cf3d6f
@ -1179,7 +1179,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:
|
||||
@ -1190,6 +1189,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);
|
||||
|
Loading…
Reference in New Issue
Block a user