]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC: r213756
authorrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 27 Oct 2010 13:10:08 +0000 (13:10 +0000)
committerrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 27 Oct 2010 13:10:08 +0000 (13:10 +0000)
commit89d50a9fade85cc54c572f8eb51c113d9e6e4030
tree62f7bd9f5d0fa6c68e6301651ade688fcef598e9
parent8b5b58ef8831b07363d8cd85c701a47add720486
MFC: r213756
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.

git-svn-id: svn://svn.freebsd.org/base/stable/8@214415 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/rpc/clnt_dg.c
sys/rpc/clnt_vc.c
sys/rpc/rpc_generic.c