From owner-freebsd-fs@FreeBSD.ORG Thu Jul 11 11:36:13 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E6D2C6FB for ; Thu, 11 Jul 2013 11:36:13 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-annu.net.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id A4A43164D for ; Thu, 11 Jul 2013 11:36:12 +0000 (UTC) X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=ME3lrcP4jFDzpPiCSQywCMKJiHtpRWeRXBDIYmR1BZg= c=1 sm=2 a=2CN1efILQXEA:10 a=FKkrIqjQGGEA:10 a=kQLhFrLAn7oA:10 a=IkcTkHD0fZMA:10 a=6I5d2MoRAAAA:8 a=wkfKJPNXhD8R7PrmbvYA:9 a=QEXdDO2ut3YA:10 a=SV7veod9ZcQA:10 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqMEAMOX3lGDaFve/2dsb2JhbABagztNgwa+SYEcdIIjAQEBAwEBAQEgBCcgCwUWGAICDRkCKQEJJgYIBwQBHASHaAYMpXiRPoEmjQl+NAeCVoEfA5UTg3CQIYMtIDKBAzc X-IronPort-AV: E=Sophos;i="4.87,1043,1363147200"; d="scan'208";a="39282997" Received: from muskoka.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.222]) by esa-annu.net.uoguelph.ca with ESMTP; 11 Jul 2013 07:36:11 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id CC56A79204; Thu, 11 Jul 2013 07:36:11 -0400 (EDT) Date: Thu, 11 Jul 2013 07:36:11 -0400 (EDT) From: Rick Macklem To: G V Message-ID: <1247906018.4407.1373542571821.JavaMail.root@uoguelph.ca> In-Reply-To: <1373477058.14313.YahooMailNeo@web120501.mail.ne1.yahoo.com> Subject: Re: Nfs readdir/readdirplus buffer size MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [172.17.91.201] X-Mailer: Zimbra 7.2.1_GA_2790 (ZimbraWebClient - FF3.0 (Win)/7.2.1_GA_2790) Cc: freebsd-fs@freebsd.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jul 2013 11:36:14 -0000 Girish wrote: > =C2=A0 I would like to know what is the buffer size passed by the client > =C2=A0 as an argument in the readdir/readdirplus > request. Is it based on dtpref setting on the server? OR is it=C2=A0 a > fixed value. >=20 > =C2=A0I am changing dtpref value on the Solaris and I would like to know > =C2=A0how freebsd client would read that. >=20 I'm afraid I don't have time to look at the code right now, so this might not be 100% accurate (and might be different for the old client): - the size readdir uses is - capped at MAXBSIZE (64K) - capped at the min(rsize,readdirsize) if specified as mount arguments - capped at dtmax as specified by the server --> I can't remember how dtpref is used. You'll need to look at the sources (or just try it and look at a packet trace in wireshark) to figure that one out. rick > thanks, > Girish > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" >=20