Index | Thread | Search

From:
Jan Stary <hans@stare.cz>
Subject:
Re: make 'df -hi' more human readable
To:
Job Snijders <job@bsd.nl>
Cc:
tech@openbsd.org
Date:
Thu, 8 Jan 2026 09:51:42 +0100

Download raw body.

Thread
  • Jan Stary:

    make 'df -hi' more human readable

  • ASOU Masato:

    make 'df -hi' more human readable

  • On Jan 07 14:42:32, job@bsd.nl wrote:
    > $ df -hi /var/www/htdocs/rpki
    > Filesystem     Size    Used   Avail Capacity  iused    ifree %iused  Mounted on
    > /dev/sd0m      2.8T   62.7G    2.6T     3%  8630581 803356617    2%   /var/www/htdocs/rpki
    > 
    >$ ./obj/df -hi /var/www/htdocs/rpki
    >Filesystem     Size    Used   Avail Capacity iused  ifree %iused  Mounted on
    >/dev/sd0m      2.8T   62.6G    2.6T     3%    8.6M   803M    2%   /var/www/htdocs/rpki
    > 
    >$ ./obj/df -hi /var/www/htdocs/rpki
    >Filesystem     Size    Used   Avail Capacity iused  ifree %iused  Mounted on
    >/dev/sd0m      2.8T   62.7G    2.6T     3%    8.2M   766M    2%   /var/www/htdocs/rpki
    > 
    > With fmt_scaled(1) the df utility reports 37 million fewer inodes than
    > actually are available, and worse, it reports 400K more inodes than
    > actually are in use. In larger file system the deviation matters.
    
    If you want to see the actual number, you have df -i (without the -h).
    
    And if it matters to you whether you have 37 million inodes more
    or less on a filesystem that has 800 million inodes in total,
    have twice as many inodes to begin with (as in newfs -i).
    
    	Jan
    
    
  • Jan Stary:

    make 'df -hi' more human readable

  • ASOU Masato:

    make 'df -hi' more human readable