From e7f3a78172bd69ae6c825aab840ffa384a375b1f Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Wed, 23 Oct 2013 19:18:41 -0700 Subject: [PATCH] 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 --- lib/libnfs.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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, ...) -- 2.34.1