Nicolas BENOIT <[EMAIL PROTECTED]> writes:
> $df /dev/hda7 -h -T
> Filesystem Type Size Used Avail Use% Mounted on
> /dev/hda7 vfat 126G 35G 91G 28% /mnt/prtg
>
> $strace df /dev/hda7 -h -T 2>&1 | grep statfs
> statfs("/mnt/prtg", {f_type="MSDOS_SUPER_MAGIC", f_bsize=32768,
> f_blocks=4120920, f_bfree=2971459, f_files=0, f_ffree=0, f_namelen=260})
> = 0
It looks to me like "df" is reporting the disk usage faithfully from
the numbers that statfs is giving it: 2971459 / 4120920 is 0.721,
which would mean 72% is free and 28% is in use. The Used and Avail
lines also seem to match the statfs call: e.g., 2971459 * 32768 B is
90.68 GiB. So, if these numbers are wrong, it's something wrong with
your kernel or file system code, not in "df" itself.
_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils