[Samba] weird samba bug? some files from shares sometimes missing..

Mitch Crane mcrane1 at alltel.net
Wed Jan 7 01:29:15 GMT 2004

> Hello, well, i have a weird problem:
> i mounted a share, shared on winxp, on my gentoo linux box via mount -t
> smbfs.. everything seems to work - seems. When i started to backup files
> with rdiff-backup, i noticed that it reported about new and deleted
> files, yet those were never deleted and are still present on the source
> share on the windows machine. I thought it might be a bug in
> rdiff-backup, yet that is not the case, ls /share | wc reports very
> often 509, sometimes even 508, 507 and 506 files, even though there are
> 510 files in the directory on the share.
> Ok I thought, maybe a bug in a recent samba version or something - yet
> ive tried it on two gentoo machines, one using kernel 2.6/samba
> 3.0.1,gcc 3.3.2, and the other one kernel 2.4.23/samba 2.2.8a/gcc 3.2.3
> - and ive also tried it with another windows box, the result is the
> same. When i access the share via a windows box, it works ok and always
> shows 510 files.
> Each backup process, which checked about 40.000 files, only a few files
> were missing, so when you only check folders with only a few files you
> might not notice this at all..
> I really hope someone can help me here, a backup with missing files aint
> really nice

I don't have anything that would help solve the problem, but it might be
helpful to know that you aren't alone.

My post to the list about it:

Other similar reports:

It seems to be a problem on the Windows side--I've verified that my Windows
XP box is skipping files when sending directory listings--, but if I use a
smbclient command to retrieve a listing then there are no missing items, so
it also appears to be related to how the request is made from the Linux

I looked into breaking my directory requests up into smaller chunks, but
anything with a wildcard in it seems to submit a search pattern of '\*'
which I suppose is then filtered on the client side.

More information about the samba mailing list