In the NFSv3 `fsinfo' procedure reply, don't claim that we support
32k read and write operations on datagram sockets when in fact we reject requests larger than 16k. It must be the case that virtually all clients use data sizes of 16k or less for UDP transport (FreeBSD's client defaults to 8k and never exceeds 16k), as this bug has been present ever since NFSv3 support was added. Reported by: Senthil <lihtnes78@netscape.net> Reviewed by: dillon Approved by: re MFC-after: 1 week
This commit is contained in:
parent
a66504b36e
commit
2f07688e82
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=107636
@ -3876,10 +3876,10 @@ nfsrv_fsinfo(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
|
||||
pref = NFS_MAXDGRAMDATA;
|
||||
else
|
||||
pref = NFS_MAXDATA;
|
||||
sip->fs_rtmax = txdr_unsigned(NFS_MAXDATA);
|
||||
sip->fs_rtmax = txdr_unsigned(pref);
|
||||
sip->fs_rtpref = txdr_unsigned(pref);
|
||||
sip->fs_rtmult = txdr_unsigned(NFS_FABLKSIZE);
|
||||
sip->fs_wtmax = txdr_unsigned(NFS_MAXDATA);
|
||||
sip->fs_wtmax = txdr_unsigned(pref);
|
||||
sip->fs_wtpref = txdr_unsigned(pref);
|
||||
sip->fs_wtmult = txdr_unsigned(NFS_FABLKSIZE);
|
||||
sip->fs_dtpref = txdr_unsigned(pref);
|
||||
|
Loading…
Reference in New Issue
Block a user