Incomplete file listing with Samba on ext2fs

Rainer Schwarze rsc at admadic.de
Tue Nov 6 05:33:40 PST 2007


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
-- 


More information about the freebsd-questions mailing list