[tlbuild] Spurious warning about insufficient disk space

Marc Baudoin babafou at babafou.eu.org
Wed Feb 22 08:45:32 CET 2023


Karl Berry <karl at freefriends.org> écrit :
> 
>        By default, all sizes are reported in 512-byte block counts.
> 
> Yes. That's what's expected. The command we actually run is:
>   POSIXLY_CORRECT=1 df -P /tl/install/dir
> which is supposed to do everything possible to get 512-byte blocks.
> (GNU df defaults to 1024-byte blocks, not that that's relevant for you.)
> 
> What is the output of that command?

% POSIXLY_CORRECT=1 df -P /usr/local
Filesystem 1K-blocks Used Available Capacity Mounted on
/dev/wd1k 19098294 8172562 9970818 45% /usr/local

But I have in my environment a BLOCKSIZE variable to have df use
kB:

% echo $BLOCKSIZE
1k

With this variable unset:

% POSIXLY_CORRECT=1 df -P /usr/local
Filesystem 512-blocks Used Available Capacity Mounted on
/dev/wd1k 38196588 16345124 19941636 45% /usr/local

By the way, POSIXLY_CORRECT has no effect with NetBSD df.

Wouldn't it be better to use df -Pk, which should work properly
on most (if not all)?


More information about the tlbuild mailing list.