Index | Thread | Search

From:
"Theo de Raadt" <deraadt@openbsd.org>
Subject:
Re: make 'df -hi' more human readable
To:
Job Snijders <job@bsd.nl>
Cc:
tech@openbsd.org
Date:
Wed, 07 Jan 2026 07:25:18 -0700

Download raw body.

Thread
Job Snijders <job@bsd.nl> wrote:

> On Wed, Jan 07, 2026 at 11:51:42AM +0000, Crystal Kolipe wrote:
> > Whilst I like the general idea, the use of 1000 as a divisor instead
> > of 1024 seems very wrong.
> 
> I also tried using a 1024 divisor, but the results just drifted too far
> away from reality for my liking. For example, a power-of-2-based 'mega'
> is ~ 5% larger than a power-of-10-based 'mega'. To me it seems a 1024
> divisor might mislead the operator about inode availability.

I don't understand this.  How many people are requiring precision for
the inode count?  This is a scheme which intentionally drops 3 digits of
precision.