From owner-freebsd-current@FreeBSD.ORG Tue Mar 8 23:14:17 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5BD51106566B; Tue, 8 Mar 2011 23:14:17 +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 01C978FC08; Tue, 8 Mar 2011 23:14:16 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApwEAI9Gdk2DaFvO/2dsb2JhbACELKMvsA6RKIEng0Z2BIUdhxU X-IronPort-AV: E=Sophos;i="4.62,286,1297054800"; d="scan'208";a="113553258" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 08 Mar 2011 18:14:15 -0500 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id ADF09B40B9; Tue, 8 Mar 2011 18:14:15 -0500 (EST) Date: Tue, 8 Mar 2011 18:14:15 -0500 (EST) From: Rick Macklem To: Pierre Beyssac Message-ID: <2037973680.1040324.1299626055701.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <20110308074340.GA93957@fasterix.frmug.org> 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-current@freebsd.org, pjd@freebsd.org Subject: Re: missing files in readdir(3) on NFS export of ZFS volume (since v28?) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Mar 2011 23:14:17 -0000 > Hello Rick, > > Thanks for your reply. > > On Mon, Mar 07, 2011 at 06:12:43PM -0500, Rick Macklem wrote: > > Readdir (in both NFS servers) depends on ZFS to reply EOPNOTSUPP for > > VFS_VGET() when it cannot be done, so that Readdir will switch to > > using VP_LOOKUP(). Just a wild guess, but maybe ZFS v28 isn't doing > > this? > > My client was plain and simple ls(1). I said readdir(3) because I > wrongly assumed ls used that, but actually from looking at the code > it looks like it uses fts_open(3) and friends instead... > Well, it will end up doing either a Readdir or ReaddirPlus RPC on the wire. (The default for the FreeBSD client is Readdir, but that can be changed with the "rdirplus" mount option.) It looks like pjd@ has committed a patch that fixes the problem. Thanks pjd@ for doing this, rick