NFSv4: After upgrade to 9 users can no longer list files. (sounds like a ZFS issue?)

Rick Macklem rmacklem at uoguelph.ca
Wed Aug 31 22:08:46 UTC 2011


George Liaskos wrote:
> On Wed, Aug 31, 2011 at 3:49 PM, Rick Macklem <rmacklem at uoguelph.ca>
> wrote:
> > Well, I can't imagine why this would matter, but you can try this
> > patch,
> > which fixes a problem introduced by r224810 where Lookup ".." no
> > longer
> > works. (It's at http://people.freebsd.org/~rmacklem/dotdot.patch, in
> > case
> > the white space gets munged.)
> > Index: fs/nfsserver/nfs_nfsdport.c
> > ===================================================================
> > --- fs/nfsserver/nfs_nfsdport.c (revision 225270)
> > +++ fs/nfsserver/nfs_nfsdport.c (working copy)
> > @@ -282,6 +282,7 @@ nfsvno_namei(struct nfsrv_descript *nd, struct
> > nam
> >
> >        *retdirp = NULL;
> >        cnp->cn_nameptr = cnp->cn_pnbuf;
> > + ndp->ni_strictrelative = 0;
> >        /*
> >         * Extract and set starting directory.
> >         */
> > Index: nfsserver/nfs_serv.c
> > ===================================================================
> > --- nfsserver/nfs_serv.c (revision 225270)
> > +++ nfsserver/nfs_serv.c (working copy)
> > @@ -157,6 +157,7 @@ ndclear(struct nameidata *nd)
> >        nd->ni_vp = NULL;
> >        nd->ni_dvp = NULL;
> >        nd->ni_startdir = NULL;
> > + nd->ni_strictrelative = 0;
> >  }
> >
> >  /*
> >
> > rick
> 
> This patch works for me. :)
> 
Ah, good. (I can't think of why root vs non-root would have mattered, but
if it fixed the problem. Maybe just a side effect, since without being
initialized, it would be whatever happened to be on the stack.)

Thanks for doing the legwork on this and letting us know. This patch
is in the re@ queue, rick.

> Regards,
> George


More information about the freebsd-fs mailing list