--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: samba: Sporadic missing files in directory listings over smbfs
- From: John Hendrikx <hjohn@xs4all.nl>
- Date: Tue, 28 Jun 2005 18:58:04 +0200
- Message-id: <200506281423.j5SEN5cd009607@smtp-vbr1.xs4all.nl>
Package: samba
Version: 3.0.14a-3
Severity: important
I have a smbfs drive mounted like this:
mount -t smbfs -o username=Administrator,password=XXX //10.0.3.1/c$
//net/c
I do this several times:
ls -1 /net/c/WINDOWS/system32 | wc
responses from wc (lines, words, bytes):
2111 2113 24550
2111 2113 24550
2106 2108 24496
2111 2113 24550
2107 2109 24501
2112 2114 24559
As you can see, the results from ls are inconsistent. Some files are
sometimes missing, but there's no real pattern. In reality there are
2119 files in this directory (DIR /A H c:\WINDOWS\system32 reports 2074
files, 47 directories which includes . and ..).
I can reproduce this on several systems without even having to try hard.
It works on any directory that is sufficiently large (say >1000 files).
There's a bug report and a fix at samba.org which is over 3 months old,
that supposedly solves this problem:
https://bugzilla.samba.org/show_bug.cgi?id=2271
The latest debian version however does not seem to include this fix (I
cannot find the patch in the debian sources).
This problem makes it very hard to do automated backup/restore
operations as the backup over smbfs is often simply incomplete because
of the missing entries in the directories.
I'll be happy to provide any further information. My config is an
almost completely default Debian testing install, and I can also
reproduce it on my 2nd Debian box.
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.27-2-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages samba depends on:
ii debconf [debconf-2.0] 1.4.30.11 Debian configuration management sy
ii libacl1 2.2.23-1 Access control list shared library
ii libattr1 2.4.16-1 Extended attribute shared library
ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an
ii libcomerr2 1.35-6 The Common Error Description libra
ii libcupsys2-gnutls10 1.1.23-10 Common UNIX Printing System(tm) -
ii libkrb53 1.3.6-1 MIT Kerberos runtime libraries
ii libldap2 2.1.30-3 OpenLDAP libraries
ii libpam-modules 0.76-22 Pluggable Authentication Modules f
ii libpam-runtime 0.76-22 Runtime support for the PAM librar
ii libpam0g 0.76-22 Pluggable Authentication Modules l
ii libpopt0 1.7-5 lib for parsing cmdline parameters
ii logrotate 3.7-2 Log rotation utility
ii netbase 4.21 Basic TCP/IP networking system
ii samba-common 3.0.14a-3 Samba common files used by both th
-- debconf information excluded
--- End Message ---