bugGNU Core Utilities - Bugs: bug #14358, df: Wrong Gigabyte-Output

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #14358: df: Wrong Gigabyte-Output

Submitter:  None
Submitted:  Thu 01 Sep 2005 09:49:30 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Wed 12 Apr 2006 08:32:21 PM UTC, comment #1: 

The output looks correct to me.  df always rounds up (POSIX requires this).  This change occurred in fileutils 4.1.10; before that, df was inconsistent and sometimes rounded up and sometimes down.

Paul Eggert <eggert>
Group administrator
Thu 01 Sep 2005 09:49:30 PM UTC, original submission:  

Hello,

ich saw this Problem after Dist-Upgrade (aptitude) from Debian 3.0 (woody) to Debian 3.1 (sarge). 3304 MB must be output 3,2(265625) GB on df -h. I had the same Problem with 1 GB partion (hda3). 1049??? (df), 1026 MB (df -m), 1.1 GB (df -h) # Afer i resize the Partion with parted on 1018MB (df -m), df -h shows me 1018MB and not 1GB. As 1GB doesn´t exsist.

server:/# df
Dateisystem          1K-Blöcke   Benutzt Verfügbar Ben% Eingehängt auf
/dev/hda3              3382340    543928   2804036  17% /
tmpfs                   515716         0    515716   0% /dev/shm
/dev/hda1                54416      8175     45680  16% /boot

server:/# df -m
Dateisystem          1M-Blöcke   Benutzt Verfügbar Ben% Eingehängt auf
/dev/hda3                 3304       532      2739  17% /
tmpfs                      504         0       504   0% /dev/shm
/dev/hda1                   54         8        45  16% /boot

server:/# df -h
Dateisystem          Größe Benut  Verf Ben% Eingehängt auf
/dev/hda3             3,3G  532M  2,7G  17% /
tmpfs                 504M     0  504M   0% /dev/shm
/dev/hda1              54M  8,0M   45M  16% /boot

server:/# df -H
Dateisystem           Größe   Benut  Verf Ben% Eingehängt auf
/dev/hda3              3,5G   557M   2,9G  17% /
tmpfs                  529M      0   529M   0% /dev/shm
/dev/hda1               56M   8,4M    47M  16% /boot

#########

On my Testserver at home the same problem:

admin@server:/$ df
Dateisystem          1K-Blöcke   Benutzt Verfügbar Ben% Eingehängt auf
/dev/hda3              1580852    628741    867770  43% /
tmpfs                    31304         0     31304   0% /dev/shm
/dev/hda1                52659     22323     27527  45% /boot

admin@server:/$ df -m
Dateisystem          1M-Blöcke   Benutzt Verfügbar Ben% Eingehängt auf
/dev/hda3                 1544       615       848  43% /
tmpfs                       31         0        31   0% /dev/shm
/dev/hda1                   52        22        27  45% /boot

admin@server:/$ df -h
Dateisystem          Größe Benut  Verf Ben% Eingehängt auf
/dev/hda3             1,6G  615M  848M  43% /
tmpfs                  31M     0   31M   0% /dev/shm
/dev/hda1              52M   22M   27M  45% /boot

admin@server:/$ df -H
Dateisystem           Größe   Benut  Verf Ben% Eingehängt auf
/dev/hda3              1,7G   644M   889M  43% /
tmpfs                   33M      0    33M   0% /dev/shm
/dev/hda1               54M    23M    29M  45% /boot

Greetings from Germany.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2006-04-12 eggert Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-f8d8.
Corresponding source code