]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC: r321314
authorrmacklem <rmacklem@FreeBSD.org>
Thu, 27 Jul 2017 23:09:12 +0000 (23:09 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Thu, 27 Jul 2017 23:09:12 +0000 (23:09 +0000)
commit7e83df1ec251bf08958f35b0714dcb0bee2d90a6
treee408fa703da24105ad48a337e58d51ca4185bbea
parent0b786544dfa97ddd73bbb45986ce0db6198111ae
MFC: r321314
r320062 introduced a bug when doing NFSv4.1 mounts against some non-FreeBSD servers.

r320062 used nm_rsize, nm_wsize to set the maximum request/response sizes for
the NFSv4.1 session. If rsize,wsize are not specified as options, the
value of nm_rsize, nm_wsize is 0 at session creation, resulting in
values for request/response that are too small.
This patch fixes the problem. A workaround is to specify rsize=N,wsize=N
mount options explicitly, so they are set before session creation.
This bug only affects NFSv4.1 mounts against some non-FreeBSD servers.
sys/fs/nfsclient/nfs_clrpcops.c