[Samba] Incomplete dir listing (ext2fs / FreeBSD)

Thomas Flaig thomas.flaig at unibw.de
Wed Nov 7 16:01:17 GMT 2007

Am Mittwoch, 7. November 2007 15:56 schrieb Rainer Schwarze:
> I moved a disk with ext2fs from a Linux box (SuSE) into my FreeBSD6.2
> box. Some directories on that disk are shared to my Windows boxes via
> v3.0.26a (according to smbd -V).
> The list of files is incomplete using Windows clients or
> smbclient on FreeBSD.
> If I copy the directories to a disk using ufs, the
> file listings on Windows / smbclient are complete.
> I already decided that I'll switch to ufs.
> However, I wonder whether it is worth investigating the problem. (I
> would keep a little ext2fs place to have a test environment for that.)
> Since the problem does not appear on ufs, it smells a bit like an
> ext2fs problem just under FreeBSD. Especially since everything was ok
> when the disk was in a Linux box.
> What do you think about it?
> In case its not primarily a problem in samba code, what lower level
> problem could cause this behaviour in the samba code?

It is reported in /usr/ports/UPDATING [0] that samba shares on other 
filesystems than ufs on freeBSD are not really supported:
| 20070919:
|   AFFECTS: users of net/samba3
|   AUTHOR: timur at FreeBSD.org
|   This is a cumulative update of net/samba3 from version 3.0.25a to
|   3.0.26a. Detailed list of all the changes can be found:
|     http://www.samba.org/samba/history/samba-3.0.26a.html
|   or in the WHATSNEW.txt file in the port's document directory.
|  Short summary is:
|   o Memory leaks in Winbind's IDMap manager.
|   o CVE-2007-4138 - Incorrect primary group assignment for domain
|      users using the RFC 2307 or sfu winbind nss info plugin.
|   o File sharing with Widows 9x clients.
|   o Winbind running out of file descriptors due to stalled child
|      processes.
|   o MS-DFS inter-operability issues.
|   o Offline caching of files with Windows XP/Vista clients.
|   o Improper cleanup of expired or invalid byte range locks on files.
|   o Crashes is idmap_ldap and idmap_rid.
|   Bug #4715 (https://bugzilla.samba.org/show_bug.cgi?id=4715) is NOT
|   fixed yet, although it won't core dump smbd process any more. Still,
|   access to the shares other than UFS is not guaranteed.

In your filesystem, or in the web (for non-freeBSD-Users ;) ):
Thomas Flaig
mailto: thomas.flaig at unibw.de

More information about the samba mailing list