HomeFreeBSD

Fix mount_nfs to recognize the NFSv4 specific errors returned by nmount(2).

Description

Fix mount_nfs to recognize the NFSv4 specific errors returned by nmount(2).

When mount_nfs calls nmount(2), certain NFSv4 specific errors such as
NFSERR_MINORVERMISMATCH can be returned.
Without this patch, 10021 is reported as an unknown error.
This is not particulcarily serious, but make it difficult for sysadmins
to figure out why the mount attempt is failing.
This patch uses nfsv4_errstr.h to convert 10021 and similar to error strings
that can be printed out.
A positive side effect of this patch is the removal of a reference to
sys/nfsclient/nfs.h, which should no longer be used, since it is
part of the old NFS client.

This patch should only affect reporting of failed mount attempts and not the
semantics of NFS mount attempts.

Details

Provenance
svnmirAuthored on
Parents
rS356100: Merge commit d3aeac8e2 from llvm git (by Justin Hibbits)
Branches
Unknown
Tags
Unknown