From owner-freebsd-current@FreeBSD.ORG Tue Mar 8 14:56:45 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 80EB01065670; Tue, 8 Mar 2011 14:56:45 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 49F298FC18; Tue, 8 Mar 2011 14:56:45 +0000 (UTC) Received: by iwn33 with SMTP id 33so5747156iwn.13 for ; Tue, 08 Mar 2011 06:56:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.43.60.193 with SMTP id wt1mr6351471icb.490.1299596204405; Tue, 08 Mar 2011 06:56:44 -0800 (PST) Received: by 10.231.149.79 with HTTP; Tue, 8 Mar 2011 06:56:44 -0800 (PST) In-Reply-To: <20110307000846.GA33085@fasterix.frmug.org> References: <20110307000846.GA33085@fasterix.frmug.org> Date: Tue, 8 Mar 2011 15:56:44 +0100 Message-ID: From: Olivier Smedts To: Pierre Beyssac Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 14:56:45 -0000 2011/3/7 Pierre Beyssac : > Hello, > > I'm running a 9-current server as compiled on Sat Mar =A05 02:17:14 > CET 2011. > > 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). > > On the NFS server (files are stored on a ZFS v15 volume, not yet > upgraded to the v28 format): > > % cd /usr/ports/devel/autoconf > % ls -i > 311401 Makefile =A0 =A0 =A0 =A0 204505 files =A0 =A0 =A0 =A0 =A0 =A020450= 9 pkg-plist > 204504 distinfo =A0 =A0 =A0 =A0 204508 pkg-descr > > On the NFS client side (FreeBSD 8.2-RELEASE): > > % cd /usr/ports/devel/autoconf > % ls -i > 204504 distinfo =A0 =A0 =A0 =A0 204508 pkg-descr > 204505 files =A0 =A0 =A0 =A0 =A0 =A0204509 pkg-plist > > Yet the missing file can be accessed: > % head -3 Makefile > # New ports collection makefile for: =A0 =A0autoconf > # Date created: =A0 =A0 =A0 =A0 7th December 2006 > # Whom: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ade@FreeBSD.org I have the same behavior for files or even complete dirs in my linux jails. The files are visible on the host computer (FreeBSD 9-CURRENT amd64 with v28 ZFS root pool), but if I chroot in the linux jail (so now it's not a jail but only a chroot running linux binaries), I can't "ls" them. I can provide more details but I'm not in front of my computer right now. What do you need ? > > Note that the missing files are scattered throughout the volume, > no relation to the inode number, as shown on a diff: > > @@ -1,8 +1,6 @@ > =A0 =A0 =A03 =A0 =A0 =A0 =A07 drwxr-xr-x =A0 70 pb =A0 =A0 =A0 =A0 =A0 = =A0 =A0 staff =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A093 =A04 mar 19:11 /usr/por= ts > - =A0 =A0 4 =A0 =A0 =A0 =A02 -rw-r--r-- =A0 =A01 pb =A0 =A0 =A0 =A0 =A0 = =A0 =A0 staff =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 241 24 jan =A02007 /usr/ports= /astro/tclgeomap/pkg-plist > =A0 =A0 =A05 =A0 =A0 =A0 =A03 drwxr-xr-x =A0 =A02 pb =A0 =A0 =A0 =A0 =A0 = =A0 =A0 staff =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 6 22 f=E9v 12:04 /usr/por= ts/astro/tkgeomap > =A0 =A0 =A06 =A0 =A0 =A0 =A03 drwxr-xr-x =A0 =A04 pb =A0 =A0 =A0 =A0 =A0 = =A0 =A0 staff =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 6 29 jul =A02008 /usr/por= ts/Tools > - =A0 =A0 7 =A0 =A0 =A0 =A05 drwxr-xr-x =A0 33 pb =A0 =A0 =A0 =A0 =A0 =A0= =A0 staff =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A034 25 nov 15:59 /usr/ports/ac= cessibility > =A0 =A0 =A08 =A0 =A0 =A0 =A03 drwxr-xr-x =A0 12 pb =A0 =A0 =A0 =A0 =A0 = =A0 =A0 staff =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A014 =A09 f=E9v =A02009 /usr= /ports/arabic > =A0 =A0 11 =A0 =A0 =A0 51 drwxr-xr-x =A0900 pb =A0 =A0 =A0 =A0 =A0 =A0 = =A0 staff =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 901 =A06 mar 14:36 /usr/ports/aud= io > =A0 =A0 12 =A0 =A0 =A0 =A03 -rw-r--r-- =A0 =A01 pb =A0 =A0 =A0 =A0 =A0 = =A0 =A0 staff =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 584 25 ao=FB =A02006 /usr/por= ts/astro/tkgeomap/pkg-descr > @@ -16,10 +14,8 @@ > =A0 =A0 23 =A0 =A0 =A0 =A03 drwxr-xr-x =A0 =A03 pb =A0 =A0 =A0 =A0 =A0 = =A0 =A0 staff =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 7 24 mar =A02010 /usr/por= ts/astro/wcslib > =A0 =A0 24 =A0 =A0 =A0 =A04 -rw-r--r-- =A0 =A01 pb =A0 =A0 =A0 =A0 =A0 = =A0 =A0 staff =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A01414 =A05 jan =A02010 /usr/por= ts/astro/wcslib/Makefile > =A0 =A0 25 =A0 =A0 =A0 =A05 drwxr-xr-x =A0 31 pb =A0 =A0 =A0 =A0 =A0 =A0 = =A0 staff =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A033 =A01 jan 23:16 /usr/ports/f= rench > - =A0 =A026 =A0 =A0 =A0 =A02 -rw-r--r-- =A0 =A01 pb =A0 =A0 =A0 =A0 =A0 = =A0 =A0 staff =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 197 =A05 jan =A02010 /usr/por= ts/astro/wcslib/distinfo > =A0 =A0 27 =A0 =A0 =A0 63 drwxr-xr-x =A01110 pb =A0 =A0 =A0 =A0 =A0 =A0 = =A0 staff =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A01111 23 f=E9v 15:37 /usr/ports/gam= es > =A0 =A0 28 =A0 =A0 =A0 =A03 drwxr-xr-x =A0 =A02 pb =A0 =A0 =A0 =A0 =A0 = =A0 =A0 staff =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 4 24 mar =A02010 /usr/por= ts/astro/wcslib/files > - =A0 =A029 =A0 =A0 =A0 =A02 -rw-r--r-- =A0 =A01 pb =A0 =A0 =A0 =A0 =A0 = =A0 =A0 staff =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 236 =A05 jan =A02010 /usr/por= ts/astro/wcslib/files/6-patch-configure > =A0 =A0 30 =A0 =A0 =A0 =A03 -rw-r--r-- =A0 =A01 pb =A0 =A0 =A0 =A0 =A0 = =A0 =A0 staff =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 677 =A05 jan =A02010 /usr/por= ts/astro/wcslib/files/patch-GNUmakefile > =A0 =A0 31 =A0 =A0 =A0 =A02 -rw-r--r-- =A0 =A01 pb =A0 =A0 =A0 =A0 =A0 = =A0 =A0 staff =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 401 17 jul =A02009 /usr/ports= /astro/wcslib/pkg-descr > =A0 =A0 32 =A0 =A0 =A0 =A04 -rw-r--r-- =A0 =A01 pb =A0 =A0 =A0 =A0 =A0 = =A0 =A0 staff =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A01515 =A05 jan =A02010 /usr/por= ts/astro/wcslib/pkg-plist > ... > > Reverting to an old 9-current kernel (January 10, before the ZFS > v28 patches) fixes the problem... > -- > Sent from my FreeBSD server > Pierre Beyssac =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0pb@fast= erix.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= " > --=20 Olivier Smedts=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 _ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 ASCII ribbon campaign ( ) e-mail: olivier@gid0.org=A0 =A0 =A0 =A0 - against HTML email & vCards=A0 X www: http://www.gid0.org=A0 =A0 - against proprietary attachments / \ =A0 "Il y a seulement 10 sortes de gens dans le monde : =A0 ceux qui comprennent le binaire, =A0 et ceux qui ne le comprennent pas."