Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49749 - coreutils/samba: du, ls reports wrong filesizes of smbfs mounted directories
Summary: coreutils/samba: du, ls reports wrong filesizes of smbfs mounted directories
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-02 13:03 UTC by Nils
Modified: 2004-09-17 05:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nils 2004-05-02 13:03:28 UTC
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.
Comment 1 Nils 2004-05-04 13:15:07 UTC
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.
Comment 2 Michael Kefeder 2004-05-14 05:10:04 UTC
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...
Comment 3 Nils 2004-06-21 07:08:30 UTC
...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.
Comment 4 Christian Andreetta (RETIRED) gentoo-dev 2004-09-11 02:16:31 UTC
what about with latest kernels (at now, 2.4.26-r9 and 2.6.8-r3) and samba-3.0.6-r4 (or later)?
Comment 5 Nils 2004-09-11 03:04:37 UTC
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.
Comment 6 Christian Andreetta (RETIRED) gentoo-dev 2004-09-17 05:13:29 UTC
closing for now. Reopen if needed