Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 May 2013 17:28:31 -0400 (EDT)
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        Hartmut Brandt <hartmut.brandt@dlr.de>
Cc:        current@freebsd.org
Subject:   Re: files disappearing from ls on NFS
Message-ID:  <474776293.114628.1367616511905.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <alpine.BSF.2.00.1305021801110.95088@KNOP-BEAGLE.kn.op.dlr.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Hartmut Brandt wrote:
> Hi,
> 
> I've updated one of my -current machines this week (previous update
> was in
> february). Now I see a strange effect (it seems only on NFS mounts):
> ls or
> even echo * will list only some files (strange enough the first files
> from
> the normal, alphabetically ordered list). If I change something in the
> directory (delete a file or create a new one) for some time the
> complete
> listing will appear but after sime time (seconds to a minute or so)
> again
> only part of the files is listed.
> 
> A ktrace on ls /usr/src/lib/libc/gen shows that getdirentries is
> called
> only once (returning 4096). For a full listing getdirentries is called
> 5
> times with the last returning 0.
> 
> I can still open files that are not listed if I know their name,
> though.
> 
> The NFS server is a Windows 2008 server with an OpenText NFS Server
> which
> works without problems to all the other FreeBSD machines.
> 
> So what could that be?
> 
Just in case..is the NFS mount in a union mount by any chance?
(There is a known bug for NFS readdir under a union mount, because the
 NFS client readdir isn't setting the eofflag. Someone has sent me a patch
 that looks fine, but it hasn't been checked into head yet.)

I'll also grep a head kernel to check to see if anything else (except the
NFS server) uses the eofflag argument to VOP_READDIR().

rick

> Regards,
> harti
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to
> "freebsd-current-unsubscribe@freebsd.org"



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