From owner-freebsd-current@FreeBSD.ORG Mon Mar 7 23:41:31 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 3C524106566B for ; Mon, 7 Mar 2011 23:41:31 +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 EB0CB8FC13 for ; Mon, 7 Mar 2011 23:41:30 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApwEAN30dE2DaFvO/2dsb2JhbACEK6MgrSqRE4Eng0V2BIUchXyBGA X-IronPort-AV: E=Sophos;i="4.62,279,1297054800"; d="scan'208";a="113408033" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 07 Mar 2011 18:12:43 -0500 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 8CCDAB3F36; Mon, 7 Mar 2011 18:12:43 -0500 (EST) Date: Mon, 7 Mar 2011 18:12:43 -0500 (EST) From: Rick Macklem To: Pierre Beyssac Message-ID: <505157381.959522.1299539563484.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <20110307000846.GA33085@fasterix.frmug.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [172.17.91.203] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - IE7 (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: Mon, 07 Mar 2011 23:41:31 -0000 > Hello, >=20 > I'm running a 9-current server as compiled on Sat Mar 5 02:17:14 > CET 2011. >=20 > Since I upgraded to ZFS v28 I noticed missing files from NFS. The > files are still accessible through NFS but they don't show up on a > readdir(3). >=20 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? rick > On the NFS server (files are stored on a ZFS v15 volume, not yet > upgraded to the v28 format): >=20 > % cd /usr/ports/devel/autoconf > % ls -i > 311401 Makefile 204505 files 204509 pkg-plist > 204504 distinfo 204508 pkg-descr >=20 > On the NFS client side (FreeBSD 8.2-RELEASE): >=20 > % cd /usr/ports/devel/autoconf > % ls -i > 204504 distinfo 204508 pkg-descr > 204505 files 204509 pkg-plist >=20 > Yet the missing file can be accessed: > % head -3 Makefile > # New ports collection makefile for: autoconf > # Date created: 7th December 2006 > # Whom: ade@FreeBSD.org >=20 > Note that the missing files are scattered throughout the volume, > no relation to the inode number, as shown on a diff: >=20 > @@ -1,8 +1,6 @@ > 3 7 drwxr-xr-x 70 pb staff 93 4 mar 19:11 /usr/ports > - 4 2 -rw-r--r-- 1 pb staff 241 24 jan 2007 > /usr/ports/astro/tclgeomap/pkg-plist > 5 3 drwxr-xr-x 2 pb staff 6 22 f=C3=A9v 12:04 /usr/ports/astro/tkgeomap > 6 3 drwxr-xr-x 4 pb staff 6 29 jul 2008 /usr/ports/Tools > - 7 5 drwxr-xr-x 33 pb staff 34 25 nov 15:59 /usr/ports/accessibility > 8 3 drwxr-xr-x 12 pb staff 14 9 f=C3=A9v 2009 /usr/ports/arabic > 11 51 drwxr-xr-x 900 pb staff 901 6 mar 14:36 /usr/ports/audio > 12 3 -rw-r--r-- 1 pb staff 584 25 ao=C3=BB 2006 > /usr/ports/astro/tkgeomap/pkg-descr > @@ -16,10 +14,8 @@ > 23 3 drwxr-xr-x 3 pb staff 7 24 mar 2010 /usr/ports/astro/wcslib > 24 4 -rw-r--r-- 1 pb staff 1414 5 jan 2010 > /usr/ports/astro/wcslib/Makefile > 25 5 drwxr-xr-x 31 pb staff 33 1 jan 23:16 /usr/ports/french > - 26 2 -rw-r--r-- 1 pb staff 197 5 jan 2010 > /usr/ports/astro/wcslib/distinfo > 27 63 drwxr-xr-x 1110 pb staff 1111 23 f=C3=A9v 15:37 /usr/ports/games > 28 3 drwxr-xr-x 2 pb staff 4 24 mar 2010 /usr/ports/astro/wcslib/files > - 29 2 -rw-r--r-- 1 pb staff 236 5 jan 2010 > /usr/ports/astro/wcslib/files/6-patch-configure > 30 3 -rw-r--r-- 1 pb staff 677 5 jan 2010 > /usr/ports/astro/wcslib/files/patch-GNUmakefile > 31 2 -rw-r--r-- 1 pb staff 401 17 jul 2009 > /usr/ports/astro/wcslib/pkg-descr > 32 4 -rw-r--r-- 1 pb staff 1515 5 jan 2010 > /usr/ports/astro/wcslib/pkg-plist > ... >=20 > Reverting to an old 9-current kernel (January 10, before the ZFS > v28 patches) fixes the problem... > -- > Sent from my FreeBSD server > Pierre Beyssac pb@fasterix.frmug.org > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to > "freebsd-current-unsubscribe@freebsd.org"