]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix the krpc so that it can handle NFSv3,UDP mounts with a read/write
authorrmacklem <rmacklem@FreeBSD.org>
Wed, 13 Oct 2010 00:57:14 +0000 (00:57 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Wed, 13 Oct 2010 00:57:14 +0000 (00:57 +0000)
commit8c097aa69ed7151df0358afc55a9bec6e7ae8b1a
tree27afd686162b8fae8b69fbe564fda358ccb1a1c0
parenteb994eb349fb4a02d6fb78be086b538e11eafd52
Fix the krpc so that it can handle NFSv3,UDP mounts with a read/write
data size greater than 8192. Since soreserve(so, 256*1024, 256*1024)
would always fail for the default value of sb_max, modify clnt_dg.c
so that it uses the calculated values and checks for an error return
from soreserve(). Also, add a check for error return from soreserve()
to clnt_vc.c and change __rpc_get_t_size() to use sb_max_adj instead of
the bogus maxsize == 256*1024.

PR: kern/150910
Reviewed by: jhb
MFC after: 2 weeks
sys/rpc/clnt_dg.c
sys/rpc/clnt_vc.c
sys/rpc/rpc_generic.c