From owner-freebsd-current@FreeBSD.ORG Fri May 3 21:28:33 2013 Return-Path: Delivered-To: current@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 79F281D7 for ; Fri, 3 May 2013 21:28:33 +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 449E315D1 for ; Fri, 3 May 2013 21:28:32 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqIEAJkqhFGDaFvO/2dsb2JhbABQgz6DPLt3gRB0gh8BAQEDAQEBASArIAsFFhgCAg0ZAikBCRgBDQYIBwQBHASHZQYMsGSQXIEkjFt+NAeCQIETA5RqgkKBJpAMgykgMoEENQ X-IronPort-AV: E=Sophos;i="4.87,607,1363147200"; d="scan'208";a="28334446" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-jnhn.mail.uoguelph.ca with ESMTP; 03 May 2013 17:28:31 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id DF6B8B3F4F; Fri, 3 May 2013 17:28:31 -0400 (EDT) Date: Fri, 3 May 2013 17:28:31 -0400 (EDT) From: Rick Macklem To: Hartmut Brandt Message-ID: <474776293.114628.1367616511905.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: Subject: Re: files disappearing from ls on NFS MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.203] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692) Cc: current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Fri, 03 May 2013 21:28:33 -0000 Hartmut Brandt wrote: > Hi, > > I've updated one of my -current machines this week (previous update > was in > february). Now I see a strange effect (it seems only on NFS mounts): > ls or > even echo * will list only some files (strange enough the first files > from > the normal, alphabetically ordered list). If I change something in the > directory (delete a file or create a new one) for some time the > complete > listing will appear but after sime time (seconds to a minute or so) > again > only part of the files is listed. > > A ktrace on ls /usr/src/lib/libc/gen shows that getdirentries is > called > only once (returning 4096). For a full listing getdirentries is called > 5 > times with the last returning 0. > > I can still open files that are not listed if I know their name, > though. > > The NFS server is a Windows 2008 server with an OpenText NFS Server > which > works without problems to all the other FreeBSD machines. > > So what could that be? > Just in case..is the NFS mount in a union mount by any chance? (There is a known bug for NFS readdir under a union mount, because the NFS client readdir isn't setting the eofflag. Someone has sent me a patch that looks fine, but it hasn't been checked into head yet.) I'll also grep a head kernel to check to see if anything else (except the NFS server) uses the eofflag argument to VOP_READDIR(). rick > Regards, > harti > _______________________________________________ > 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"