Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Dec 2007 05:10:49 +0300
From:      Jonathan Stewart <jonathan@kc8onw.net>
To:        Jeremy Chadwick <koitsu@FreeBSD.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Missing files in listing when sharing ZFS directory over Samba
Message-ID:  <475608A9.8010304@kc8onw.net>
In-Reply-To: <20071201013307.GA65211@eos.sc1.parodius.com>
References:  <47506208.3030100@kc8onw.net>	<20071201005222.GA64295@eos.sc1.parodius.com>	<4750B8AA.6090707@kc8onw.net> <20071201013307.GA65211@eos.sc1.parodius.com>

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

Jeremy Chadwick wrote:
> On Sat, Dec 01, 2007 at 04:28:10AM +0300, Jonathan Stewart wrote:
>> Jeremy Chadwick wrote:
>>> On Fri, Nov 30, 2007 at 10:18:32PM +0300, Jonathan Stewart wrote:
>>>> Has anyone else noticed files missing when browsing Samba shares of ZFS
>>>> directories?
>>> http://unix.derkeiler.com/Mailing-Lists/FreeBSD/current/2007-11/msg00501.html
>> This sounds like my problem except a refresh on Windows does not restore
>> the missing files, nor did any of the other things I mentioned in the
>> original email.
> 
> The interesting thing is that I use Samba to share many directories on a
> ZFS filesystem, and I haven't run into the problem you or the other
> poster have mentioned.  I wonder what's different about our setups that
> could explain what's going on...

I don't know what the difference might be but I did some digging and
found https://bugzilla.samba.org/show_bug.cgi?id=4715#c25

Setting "directory name cache size = 0" fixes the problem for me,
apparently it's a performance killer but I don't have any directories
with huge numbers of entries and the server is very overpowered for what
it's used for.

It's a workaround not a fix but it works for me till someone that has a
better understanding of the systems involved fixes it correctly.  My
basic understanding (which may be wrong) is that Samba expects a certain
thing relating to listing directories from FreeBSD that it does not do
but most Linux distros do.  The bug report link has vastly more detailed
information.

Jonathan



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?475608A9.8010304>