bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: df bug with a big vfat partition [2]


From: Paul Eggert
Subject: Re: df bug with a big vfat partition [2]
Date: Thu, 01 Apr 2004 07:10:46 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Nicolas BENOIT <address@hidden> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]