Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jan 2011 09:11:52 -0500 (EST)
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        Attila Nagy <bra@fsn.hu>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: NFS problem: file doesn't appear in file listing,	but can be accessed directly
Message-ID:  <1571522098.399734.1295359912372.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <4C614A7D.8030509@fsn.hu>

index | next in thread | previous in thread | raw e-mail

> On 08/08/2010 02:06 AM, Rick Macklem wrote:
> >> On 07.08.2010, at 02:35, Rick Macklem wrote:
> >>
> >> I agree, this must be some kind of server issue then. Still, I
> >> wonder
> >> why the solaris client didn't show the problem...
> >>
> >>
> > 2 things:
> > 1 - the solaris client uses ReaddirPlus and not Readdir RPCs by
> >      default (I can't remember if that default can be overridden?).
> I don't know whether this counts or not, but I've tried with an old
> Solaris (x86) 8 (uname says it's Generic_108529-06).
> 
> > ps: I don't recall the previous emails mentioning that the "ls"
> >      was ok for a solaris client.
> >
> It was in 4C582968.9000303@fsn.hu:
> "I've mounted the share from an old Solaris box, which sees the file."
> 
> This means, when I issue an ls | grep problematic_fname, I can see the
> filename.
> BTW, this turned out to be incorrect, because I've tested with the
> same
> (one of the missing) filename.
> Doing a find . in the directory on both FreeBSD and Solaris client
> shows
> some differences.
> So what I have now is: both the normal and the experimental NFSD show
> the problem on both FreeBSD and Solaris clients (only the missing file
> names are different).
> 
> On Solaris there are 78 files missing, on FreeBSD there are 193, I
> haven't checked that they are persistent across reboots or not.

I believe that this problem might be fixed by r216774 in head (for the
regular NFS server) and r216691 in head (for the experimental NFS server).

The above patches fixes a problem that would occur when ZFS generated
non monotonically increasing directory offset cookies and readdir in
the server would skip over some directory entries.

rick



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1571522098.399734.1295359912372.JavaMail.root>