From owner-freebsd-fs@FreeBSD.ORG Sat Jan 29 20:17:27 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49F381065696 for ; Sat, 29 Jan 2011 20:17:27 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id 0880B8FC14 for ; Sat, 29 Jan 2011 20:17:26 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApwEAMcERE2DaFvO/2dsb2JhbACEFKFYqwCPd4Ejgzd0BIUThw4 X-IronPort-AV: E=Sophos;i="4.60,397,1291611600"; d="scan'208";a="108932542" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 29 Jan 2011 15:17:25 -0500 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id EFEF9B3F21; Sat, 29 Jan 2011 15:17:25 -0500 (EST) Date: Sat, 29 Jan 2011 15:17:25 -0500 (EST) From: Rick Macklem To: =?utf-8?Q?Micka=C3=ABl_Can=C3=A9vet?= Message-ID: <715248679.1071311.1296332245920.JavaMail.root@erie.cs.uoguelph.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.202] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - IE8 (Win)/6.0.10_GA_2692) Cc: freebsd-fs@freebsd.org Subject: Re: "rpc mount export: RPC: Can't decode result" when export list is to long X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jan 2011 20:17:27 -0000 Oops, I should have looked at the sources... In mountd.c it limits the RPC size to 8800 for UDP and 9000 for TCP. (UDPMSGSIZE and RPC_MAXDATASIZE respectively) You could increase this by changing: svc_dg_create(...,0, 0); else svc_vc_create(...,RPC_MAXDATASIZE, RPC_MAXDATASIZE); to svc_dg_create(..., 63 * 1024, 63 * 1024); else svc_vc_create(..., 200 * 1024, 200 * 1024); in mountd.c But... The Linux client might set a smaller limit in its client side RPC library anyhow. Again, I am surprised that the Linux automount checks the exports reported via mountd, but??? Did you check to see if the mounts work manually? (That would confirm if they are exported ok.) rick ps: UDP datagrams are limited to 64K, but since I can't remember if that size includes the UDP header, I went with 63K. For TCP it is limited to 256K in the RPC library and to a somewhat lower value with the default kern.ipc.maxsockbuf. (Basically what the kernel sets sb_max_adj to.)