Problem
"df -v" does not return the correct information on my filesystem yet "dfspace" does.
Below is an example of correct "dfspace" and "df -v" output, followed by a second example, which is incorrect:
# dfspace/ : Disk space: 1183.30 MB of 1952.97 MB available (60.59%).
/stand : Disk space: 8.85 MB of 20.00 MB available (44.27%).
/u : Disk space: 996.24 MB of 2047.99 MB available (48.64%).
/u1 : Disk space: 14831.38 MB of 20479.99 MB available (72.42%).
/u2 : Disk space: 23500.81 MB of 44032.00 MB available (53.37%).Total Disk Space: 40520.60 MB of 68532.97 MB available (59.13%).
# df -vMount Dir Filesystem blocks used free %used
/ /dev/root 3999694 1576286 2423408 40%
/stand /dev/boot 40960 22828 18132 56%
/u /dev/u 4194304 2153998 2040306 52%
/u1 /dev/u1 41943040 11568362 30374678 28%
/u2 /dev/u2 90177536 42047860 48129676 47%In the second half of the example, one file on the /u2 filesystem has
been made slightly larger. Observe that the "%used" column in the
"df -v" output for /u2 is now wrong:# dfspace/ : Disk space: 1183.30 MB of 1952.97 MB available (60.59%).
/stand : Disk space: 8.85 MB of 20.00 MB available (44.27%).
/u : Disk space: 996.24 MB of 2047.99 MB available (48.64%).
/u1 : Disk space: 14831.38 MB of 20479.99 MB available (72.42%).
/u2 : Disk space: 23500.68 MB of 44032.00 MB available (53.37%).Total Disk Space: 40520.47 MB of 68532.97 MB available (59.13%).
# df -vMount Dir Filesystem blocks used free %used
/ /dev/root 3999694 1576294 2423400 40%
/stand /dev/boot 40960 22828 18132 56%
/u /dev/u 4194304 2153998 2040306 52%
/u1 /dev/u1 41943040 11568362 30374678 28%
/u2 /dev/u2 90177536 42048124 48129412 0% Cause
There is a bug with the "-v" option of "df".
This happens when any filesystem has more than about 20.5GB in use. This is only a display problem and does not indicate any actual problem with the filesystem, only with the "df" program.
Solution
This problem is fixed with the "df" from OpenServer 5.0.6.
See also
df(C); dfspace(C)