From owner-freebsd-questions@FreeBSD.ORG Tue Nov 6 13:33:40 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A7FD816A417 for ; Tue, 6 Nov 2007 13:33:40 +0000 (UTC) (envelope-from rsc@admadic.de) Received: from mo-p00-ob.rzone.de (mo-p00-ob.rzone.de [81.169.146.161]) by mx1.freebsd.org (Postfix) with ESMTP id E8FA713C4BE for ; Tue, 6 Nov 2007 13:33:39 +0000 (UTC) (envelope-from rsc@admadic.de) Received: from srv.lpz.q-17.de.local (dslb-088-074-129-176.pools.arcor-ip.net [88.74.129.176]) by post.webmailer.de (klopstock mo22) (RZmta 14.0) with ESMTP id R04703jA6CxHeG for ; Tue, 6 Nov 2007 14:33:27 +0100 (MET) (envelope-from: ) Received: (qmail 2193 invoked by uid 98); 6 Nov 2007 13:33:09 -0000 Received: from 192.168.40.21 by srv.lpz.q-17.de.local (envelope-from , uid 89) with qmail-scanner-2.01 ( Clear:RC:1(192.168.40.21):. Processed in 0.032954 secs); 06 Nov 2007 13:33:09 -0000 Received: from unknown (HELO ?192.168.40.21?) (192.168.40.21) by srvfb.lpz.q-17.de.local with SMTP; 6 Nov 2007 13:33:08 -0000 Message-ID: <47306D15.9020208@admadic.de> Date: Tue, 06 Nov 2007 14:33:09 +0100 From: Rainer Schwarze User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <472F589E.7090206@admadic.de> <472FA898.2080704@cyberleo.net> In-Reply-To: <472FA898.2080704@cyberleo.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-RZG-AUTH: lUESeo99iNzPSoaxNYLEYM0vFQKTxznPOmIi0KhUTW8YiUQ81LloxpqYX6c= X-RZG-CLASS-ID: mo00 Subject: Re: Incomplete file listing with Samba on ext2fs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2007 13:33:40 -0000 CyberLeo Kitsana wrote: > Rainer Schwarze wrote: >> I created 1000 files named "file000" ... "file0999" in a directory. I >> could see all of them via Windows. >> >> I created 1000 files named "file-0000.file" ... "file-0999.file" in a >> directory. I could see the first 130 files of them. > > Are you sure this is only happening with ext2fs? You might be running > into a filename mangling limitation in Samba. That was my first interpretation after the test case with the filenames. However, everything works well when I put the same set of files on a UFS volume shared by samba. When copying the same set of files to another directory on ext2fs the directory listings are still incomplete. It happens with the test data as well as with "real life" file sets. When I create the files starting at 0000 I can see the files with the number 0000 to 0128, when I create them starting at 0999 down to 0000, I can see 0999 to 0871. So I think it doesn't look like filename mangling problems. To me it looks like smbd retrieves the first subset of files which fit into an internal memory block, returns that and does not get the next subset of files from the directory. I read a problem like that for another scenario but unfortunately can't locate it any more. Best wishes, Rainer --