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

George Liaskos geo.liaskos at gmail.com
Wed Aug 31 19:57:25 UTC 2011


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. :)

Regards,
George


More information about the freebsd-fs mailing list