Technical article 114922

OpenServer 5.x, "df" is not returning the correct information on my filesystem.

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5

Written · Last revised

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 -v
Mount 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 -v
Mount 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)

From the Xinuos technical article database, record 114922. Reproduced with permission. The original is at www.sco.com/ta/114922, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.