The Samba-Bugzilla – Bug 8721
only a subset of child directories load when vfs_dirsort is enabled
Last modified: 2014-10-30 21:01:42 UTC
If and only if vfs_dirsort is enabled, Mac OS X line client will not load all child directories when more than 800 or so (guessing) child directories are present in a directory. This behavior is 100% consistent on Mac OS X Lion client.
This behavior also occurs in Windows XP and Windows 7 clients, however it is erratic. On windows, often a refresh will load the complete directory.
In the attached log file, I connect to the server from Mac OS X Lion client and navigate to a directory with > 2,000 child directories. Only about 300 or so load (files beginning with A-C) before the directory listing stops.
Server is running Debian Wheezy. Linux fs4 3.1.0-1-amd64 #1 SMP Tue Jan 10 05:01:58 UTC 2012 x86_64 GNU/Linux
Created attachment 7254 [details]
log file for mac os X lion client accessing samba share. debug level 6
I marked this critical because if you try to copy one of these partially loaded directories, you will in fact only get a partial transfer, though on the windows end everything looks normal (unless you compare the size of what you "copied" to the size of the original).
So, data loss is a possibility on large directories with vfs_dirsort enabled.
Just wanted to point out that this is STILL an issue years and years later, and it's one that can absolutely result in data loss. If no one is going to contribute a fix, this plugin should be removed from the distribution completely. As is, it's a disaster waiting to happen to anyone who touches it.
*** Bug 6985 has been marked as a duplicate of this bug. ***
The vfs_dirsort module got some recent updates. Try and reproduce using latest 4.1 and Windows. If you can reproducibly show the bug I'll take a look.