missing files in readdir(3) on NFS export of ZFS volume (since
rmacklem at uoguelph.ca
Tue Mar 8 23:14:17 UTC 2011
> Hello Rick,
> Thanks for your reply.
> On Mon, Mar 07, 2011 at 06:12:43PM -0500, Rick Macklem wrote:
> > Readdir (in both NFS servers) depends on ZFS to reply EOPNOTSUPP for
> > VFS_VGET() when it cannot be done, so that Readdir will switch to
> > using VP_LOOKUP(). Just a wild guess, but maybe ZFS v28 isn't doing
> > this?
> My client was plain and simple ls(1). I said readdir(3) because I
> wrongly assumed ls used that, but actually from looking at the code
> it looks like it uses fts_open(3) and friends instead...
Well, it will end up doing either a Readdir or ReaddirPlus RPC on the
wire. (The default for the FreeBSD client is Readdir, but that can be
changed with the "rdirplus" mount option.)
It looks like pjd@ has committed a patch that fixes the problem.
Thanks pjd@ for doing this, rick
More information about the freebsd-current