If you mount a samba share (from the same or another machine). You get wrong filesizes / directorysizes with du or ls. (It can be problem with samba, too) Gentoo, Kernel 2.6.4 / 2.6.5 (It doesn't matter) up-to-date system May, 2004 [coreutils 5.0.91-r4 / samba 3.0.2a-r2] Reproducible: Always Steps to Reproduce: 1. Create a share in smb.conf (don't use an empty directory!) 2. mount the share 3. try "du -h" in the mounted Actual Results: -> the reported filesize of du will be much bigger than the real filesize Expected Results: The filesystem is not corrupted.
There is no problem with kernel 2.4.x! Additionally I have tested 3 more systems : 2 gentoo systems - kernel 2.6.5 (one of these systems has the problem and one doesn't have it -> both systems are very equal and I can't find differences) 1 debian system - kernel 2.6.0 has the same problem, I compiled my system with the kernel configuration from the working system with no success. It can be a problem with USE flags or the CFLAGS, but I don't know what it is exactly.
I confirm this problem. I run kernel 2.6.4 and have some smbfs shares mounted - du reports wrong sizes. du works on NFS mounts just fine, i cannot run 2.4 kernel because it wont detect my SATA disk correctly, therefore i cannot test if it's the kernels or sambas fault...
...same with samba 3.0.4-r1 and coreutils 5.2.0-r2. It's not reproduceable on every system, I don't know why.
what about with latest kernels (at now, 2.4.26-r9 and 2.6.8-r3) and samba-3.0.6-r4 (or later)?
I could check only one configuration, and find out that there's no problem with 2.6.8.1 and samba 3.0.6-r4. I think the problem is solved in samba 3.0.6-r4 and it does not depend on the kernel version. Can somebody verify this? Then the bug be removed.
closing for now. Reopen if needed