Red Hat Bugzilla – Bug 433632
"df" command return bad results
Last modified: 2009-07-15 09:46:38 EDT
Description of problem: Command "df" doesn't return good results. For example
when we execute "df -k" we get following result for /tmp partition:
/dev/hda5 9920592 -73786976294838134616 9480372 101% /tmp
Used disk space is negative.
[root@polux6 tmp]# du -ks .
We can see that /tmp partition can not be full as indicate in command "df" result.
Execution of «fsck» command hasn’t allowed resolving the problem. “df” return
always the same result.
Version-Release number of selected component (if applicable):
How reproducible: everytime by using "df" command
Steps to Reproduce:
1. Execute "df"
2. Execute "du -ks /*"
3. Compare the two first results for each partition
Actual results: "df" return bad results
Expected results: "df" return good results
Reassigning to coreutils, as that contains the df/du commands which seem to be
the problem here.
Actually comparing df and du is not good idea and could lead to wrong results.
Anyway this is not the case of that issue. I have seen several bugzillas with
similar issues (#135596, #128418).
Could you please provide strace log of the failure case? This could be helpful.
Closing insufficient data - feel free to reopen the bugzilla if you provide strace log of failure and you still experience that issue.