Bug#289006: java-package errors when checking free disk space

roberto@familiasanchez.net, 289006@bugs.debian.org roberto@familiasanchez.net, 289006@bugs.debian.org
Thu Jan 6 12:58:02 2005


I found out the problem.

My sarge box has devfs.  My Woody box has standard device nodes.  The "df"
output with devfs confuses the "read" command on line 30 of common.sh

output from my Sarge box:

$ df --block-size=1048576 /tmp/
Filesystem           1M-blocks      Used Available Use% Mounted on
/dev/ide/host0/bus0/target0/lun0/part5
                          9992      5201      4791  53% /

output from my Woody box:
$ df --block-size=1048576 /tmp/
Filesystem           1M-blocks      Used Available Use% Mounted on
/dev/hda13                 998         1       997   1% /tmp


Apparently, the length of the file system devices in devfs causes the actual
amounts to appear on the next line, and common.sh takes the "tail -1".  This
has the effect of causing the 53% (in my case) to get passed in instead of
the 4791, since the "free" variable in common.sh is the fourth value read in.

-Roberto Sanchez

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.