mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Patch the experimental NFS server in a manner analagous to r205661
for the regular NFS server, to ensure that ESTALE is returned to the client for all errors returned by VFS_FHTOVP(). MFC after: 2 weeks
This commit is contained in:
parent
2561854d2b
commit
7482701cd4
1 changed files with 3 additions and 0 deletions
|
|
@ -2443,6 +2443,9 @@ nfsvno_fhtovp(struct mount *mp, fhandle_t *fhp, struct sockaddr *nam,
|
|||
*credp = NULL;
|
||||
exp->nes_numsecflavor = 0;
|
||||
error = VFS_FHTOVP(mp, &fhp->fh_fid, vpp);
|
||||
if (error != 0)
|
||||
/* Make sure the server replies ESTALE to the client. */
|
||||
error = ESTALE;
|
||||
if (nam && !error) {
|
||||
error = VFS_CHECKEXP(mp, nam, &exp->nes_exflag, credp,
|
||||
&exp->nes_numsecflavor, &secflavors);
|
||||
|
|
|
|||
Loading…
Reference in a new issue