mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
The new NFSv3 server did not generate directory postop attributes for
the reply to ReaddirPlus when the server failed within the loop that calls VFS_VGET(). This failure is most likely an error return from VFS_VGET() caused by a bogus d_fileno that was truncated to 32bits. This patch fixes the server so that it will return directory postop attributes for the failure. It does not fix the underlying issue caused by d_fileno being uint32_t when a file system like ZFS generates a fileno that is greater than 32bits. Reported by: jpaetzel Reviewed by: jpaetzel MFC after: 1 month
This commit is contained in:
parent
0716c0ff7a
commit
6c7d2293d3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=268273
@ -2264,9 +2264,11 @@ nfsrvd_readdirplus(struct nfsrv_descript *nd, int isdgram,
|
||||
if (dirlen > cnt || nd->nd_repstat) {
|
||||
if (!nd->nd_repstat && entrycnt == 0)
|
||||
nd->nd_repstat = NFSERR_TOOSMALL;
|
||||
if (nd->nd_repstat)
|
||||
if (nd->nd_repstat) {
|
||||
newnfs_trimtrailing(nd, mb0, bpos0);
|
||||
else
|
||||
if (nd->nd_flag & ND_NFSV3)
|
||||
nfsrv_postopattr(nd, getret, &at);
|
||||
} else
|
||||
newnfs_trimtrailing(nd, mb1, bpos1);
|
||||
eofflag = 0;
|
||||
} else if (cpos < cend)
|
||||
|
Loading…
Reference in New Issue
Block a user