From owner-freebsd-stable@FreeBSD.ORG Wed Dec 5 02:12:10 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A90416A419 for ; Wed, 5 Dec 2007 02:12:10 +0000 (UTC) (envelope-from jonathan@kc8onw.net) Received: from mail-out1.fuse.net (mail-out1.fuse.net [216.68.8.175]) by mx1.freebsd.org (Postfix) with ESMTP id 0CE6013C467 for ; Wed, 5 Dec 2007 02:12:09 +0000 (UTC) (envelope-from jonathan@kc8onw.net) X-CNFS-Analysis: v=1.0 c=1 a=JyQZdn45cCgA:15 a=R0E1po9oRhsA:10 a=xUvkYoQocQKi/8Los98NoQ==:17 a=wFaEK3txAAAA:8 a=hGzw-44bAAAA:8 a=ix_hu5HSKw4EBQWm6E0A:9 a=fzbwiD15OWCGhEQDtVMA:7 a=4S3VYdixNiSHVROTwdbWotfULygA:4 a=QMgMR9M9BAsA:10 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine Received: from [208.102.162.227] ([208.102.162.227:50171] helo=mail.kc8onw.net) by mail-out1.fuse.net (ecelerity 2.1.1.22 r(17669)) with ESMTP id 8B/DC-06930-8F806574 for ; Tue, 04 Dec 2007 21:12:08 -0500 Received: from [0.0.0.0] (localhost [127.0.0.1]) by mail.kc8onw.net (Postfix) with ESMTP id 9C0C128415; Tue, 4 Dec 2007 21:12:03 -0500 (EST) Message-ID: <475608A9.8010304@kc8onw.net> Date: Wed, 05 Dec 2007 05:10:49 +0300 From: Jonathan Stewart User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Jeremy Chadwick References: <47506208.3030100@kc8onw.net> <20071201005222.GA64295@eos.sc1.parodius.com> <4750B8AA.6090707@kc8onw.net> <20071201013307.GA65211@eos.sc1.parodius.com> In-Reply-To: <20071201013307.GA65211@eos.sc1.parodius.com> X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: Missing files in listing when sharing ZFS directory over Samba X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Dec 2007 02:12:10 -0000 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