From owner-freebsd-fs@FreeBSD.ORG Tue Aug 30 15:10:27 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD4B11065670; Tue, 30 Aug 2011 15:10:27 +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 34F0C8FC23; Tue, 30 Aug 2011 15:10:26 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap4EACD9XE6DaFvO/2dsb2JhbABChEykSIFAAQEEASMEUgUWDgoCAg0ZAlkGiAWnW5IJgSyEEIERBJMkkSE X-IronPort-AV: E=Sophos;i="4.68,302,1312171200"; d="scan'208";a="135967478" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 30 Aug 2011 11:10:14 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 5CC87B3F05; Tue, 30 Aug 2011 11:10:14 -0400 (EDT) Date: Tue, 30 Aug 2011 11:10:14 -0400 (EDT) From: Rick Macklem To: George Liaskos Message-ID: <1005169645.540203.1314717014356.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.201] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692) Cc: freebsd-fs@freebsd.org, Pawel Jakub Dawidek Subject: Re: NFSv4: After upgrade to 9 users can no longer list files. (sounds like a ZFS issue?) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2011 15:10:27 -0000 George Liaskos wrote: > > Well, if non-root users can't "ls" locally on the server, this > > sounds more > > like a ZFS issue than an NFS one. (I don't see this w.r.t. NFS when > > exporting > > a UFS volume.) > > > > I don't know anything about ZFS. I've added a couple of the ZFS guys > > to the > > cc list, in case they don't read posts with NFS in the subject line. > > > > rick > > Just to be clear, non root users can't ls mounted exports on the > server. > Using ls directly on the ZFS file system works. > > I exported a UFS directory, everything works... So this is either a > ZFS or > an ACL related issue. I will setup a clean VM to see if i can > reproduce this. > You could try this patch and see what effect it has (applied to the server). It just disables the access check for readdir. --- nfs_nfsdport.c.sav2 2011-08-30 10:35:58.000000000 -0400 +++ nfs_nfsdport.c 2011-08-30 10:36:54.000000000 -0400 @@ -1838,10 +1838,12 @@ nfsrvd_readdirplus(struct nfsrv_descript nd->nd_repstat = NFSERR_NOTDIR; if (!nd->nd_repstat && cnt == 0) nd->nd_repstat = NFSERR_TOOSMALL; +#ifdef notnow if (!nd->nd_repstat) nd->nd_repstat = nfsvno_accchk(vp, VEXEC, nd->nd_cred, exp, p, NFSACCCHK_NOOVERRIDE, NFSACCCHK_VPISLOCKED, NULL); +#endif if (nd->nd_repstat) { vput(vp); if (nd->nd_flag & ND_NFSV3) This wouldn't be suitable for a production system, but whether or not it "fixes" the problem would give us an indication of where the problem is. Also, if you could clarify when your 8/stable was downloaded, whether your 9.0 upgrade was to vanilla Beta1 or ??? and details w.r.t. your ZFS setup, that might help. And one more... If you could create a fresh ZFS pool/volume and export that to see if it exhibits the same problem, that information could help figure it out, too. Please let us know how it goes, rick > Thank you for your response. > > Regards, > George