The Samba-Bugzilla – Bug 1304
missing files with linux CIFS client, smbclient OK
Last modified: 2005-03-07 20:59:46 UTC
In a directory with approximately 300 files, several (dozens) files
are missing if the directory is mounted with /sbin/mount.cifs via the
Linux CIFS module kernel/fs/cifs/cifs.o.
We are using a Redhat Linux Workstation Version 3 with kernel
The problem occurs on a Samba server 3.0.2a running Solaris 2.8
as well as using the precompiled Redhat Linux Samba server.
If the samba client is changed from CIFS kernel module to smbclient,
all files are listed as expected.
As far as we can see, the string "get_lanman2_dir_entry: out of space"
is printed in the samba server debug log (only one time using the CIFS
module leading to missing files, several times using smbclient
where everything is OK).
Thanks in advance for a reply.
University of Cologne
Institute of Mathematics
Can you try 1.20c version of cifs?
(In reply to comment #1)
> Can you try 1.20c version of cifs?
Using the new module, all files in the directory are available.
An advantage of the smbfs module (compared to cifs) is still that the connection
is reopened if the remote smbd server process is killed and started again.
It would be fine to have such a fault tolerance also with the cifs module. With
this module, the connection is lost after the smbd process disappeared. To
reopen it, all client processes using the connection have to be killed, then the
smb share can be unmounted and remounted again.
Note that cifs vfs also reconnects (and unlike smbfs, cifs vfs keeps and resets
state properly except for byte range locks which neither preserves yet).