On 1/24/20 11:50 AM, Wismerhill wrote:
'df' reports a wrong space calculation

What's wrong about the space calculation?

Please give the 'df' command that you ran, its faulty output, and also the output of 'strace' applied to the 'df' command that you ran. For example, on my machine, 'strace df' outputs the line:

statfs("/tmp", {f_type=TMPFS_MAGIC, f_bsize=4096, f_blocks=1018122, f_bfree=1007348, f_bavail=1007348, f_files=1018122, f_ffree=1018073, f_fsid={val=[0, 0]}, f_namelen=255, f_frsize=4096, f_flags=ST_VALID|ST_NOSUID|ST_NODEV}) = 0

and those are the numbers that 'df' uses to calculate what it should output. If those numbers are wrong, df's output will be wrong but it's not df's fault - it's the kernel or btrfs or whatever. If those numbers are right but df's output is wrong, then df is at fault.



Reply via email to