mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=205663
@ -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 New Issue
Block a user