Return-Path: linux-nfs-owner@vger.kernel.org Received: from fieldses.org ([174.143.236.118]:40732 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754093AbaHZTue (ORCPT ); Tue, 26 Aug 2014 15:50:34 -0400 Date: Tue, 26 Aug 2014 15:50:33 -0400 From: "J. Bruce Fields" To: Trond Myklebust Cc: Andreas Fenkart , Linux NFS Mailing List , Daniel Mack Subject: Re: `ls` shows no files in mounted nfs folder, but ls 'file' works Message-ID: <20140826195033.GB25117@fieldses.org> References: <20140710175136.GA26561@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: linux-nfs-owner@vger.kernel.org List-ID: On Fri, Jul 25, 2014 at 06:12:40PM -0400, Trond Myklebust wrote: > On Wed, Jul 16, 2014 at 11:45 AM, Andreas Fenkart wrote: > > 2014-07-16 16:47 GMT+02:00 Trond Myklebust : > >> On Wed, Jul 16, 2014 at 1:21 AM, Andreas Fenkart wrote: > > > >> That unfortunately only shows a few READ requests, probably because > >> the readdirs etc are cached. Could you try again with a directory that > >> is not in cache and/or try "echo 3 >/proc/sys/vm/drop_caches" before > >> retrying the 'ls /'? > > > > # tcpdump -s 0 -w /tmp/nfs-client_v4.dump > > # echo 3 >/proc/sys/vm/drop_caches > > # ls -l / > > > > file is logged to tmpfs, then copied > > http://www.pcapr.net/view/afenkart/2014/6/3/8/nfs-client_v4.dump.html > > > >> Note: I am a little surprised that there are no GETATTRs in that dump. > >> Even if the readdir is cached, the client is supposed to revalidate > >> the directory. > > > > should be there now > > Still not seeing the readdir, but the getattrs are there and all looks OK. > Question: the server is knfsd from a Linux 3.14.4 kernel, is that > correct? So it does have commit 83b19121522 (nfsd: revert v2 half of > "nfsd: don't return high mode bits")? Yeah, you can even see the high bits set (correctly) in the stat returns, so he has that patch. Andreas, are you still seeing this problem? --b.