From: Ronnie Sahlberg Date: Thu, 24 Oct 2013 02:18:41 +0000 (-0700) Subject: Don't clamp write3 max to 32k X-Git-Tag: upstream/1.9.6^2~183 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=e7f3a78172bd69ae6c825aab840ffa384a375b1f;p=deb_libnfs.git Don't clamp write3 max to 32k We use our own XDR and RPC layer nowadays and do not have any external dependencies to XDR or RPC. As such we no longer need to clamp the write size to max 32kb since we never link to the system rpc/xdr libraries. (and thus dont have to clamp in case the system library is broken for pdu's > 32k) Signed-off-by: Ronnie Sahlberg --- diff --git a/lib/libnfs.c b/lib/libnfs.c index ec13966..0b83123 100644 --- a/lib/libnfs.c +++ b/lib/libnfs.c @@ -3446,11 +3446,7 @@ uint64_t nfs_get_readmax(struct nfs_context *nfs) */ uint64_t nfs_get_writemax(struct nfs_context *nfs) { - /* Some ZDR libraries can not marshall PDUs bigger than this */ - if (nfs->writemax < 32768) { - return nfs->writemax; - } - return 32768; + return nfs->writemax; } void nfs_set_error(struct nfs_context *nfs, char *error_string, ...)