Bug 591 - Missing files in XP directory
Summary: Missing files in XP directory
Alias: None
Product: Samba 2.2
Classification: Unclassified
Component: File Services (show other bugs)
Version: 2.2.7a
Hardware: All Linux
: P4 normal
Target Milestone: ---
Assignee: Gerald (Jerry) Carter (dead mail address)
QA Contact:
Depends on:
Reported: 2003-10-09 08:18 UTC by Tim Gee
Modified: 2005-11-14 09:30 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Tim Gee 2003-10-09 08:18:05 UTC
I have a large directory on an XP machine. The directory has 4999 files. If copy
these files to another machine using samba, some files end up missing. 

If I issue the following command, to count the files:
       "ls | cat -n | tail -1"

I get:

  4993  004999.dat

Actually, the result seems to vary somewhat. For example, sometimes, I change
the number of lines in the tail command, and I get a different count. 

I hope this helps.  Feel free to ask me questions.
Comment 1 Tim Potter 2003-10-10 00:07:01 UTC
Are there any strange (not [A-Za-z0-9]) characters in the filenames?  There are
a couple of open bugs to do with large numbers of files containing unusual
Comment 2 Gerald (Jerry) Carter (dead mail address) 2003-10-10 06:38:00 UTC
This is a known issue with the 'hash' mangling method.
Try setting "mangling method = hash2" which is the 
default for Samba 3.0.

The original problem is caused by large numbers of 
files that share the same first 5 characters or so.
Comment 3 Gerald (Jerry) Carter (dead mail address) 2005-11-14 09:30:00 UTC
database cleanup