Re: [hatari-devel] Re: GemDOS_DFree

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Christian Zietz schrieb:

Hence, both the total size and the available size must be calculated by
multiplying with "f_frsize" (and ignoring "f_bsize").

For example, "df" from the GNU coreutils uses "f_frsize" whenever it is set (non-zero) as blocksize for everything: total, free, and available space:
https://github.com/coreutils/gnulib/blob/9a1a6385a57bd6c6493ba1d0660a960574953a9a/lib/fsusage.c#L124

Looking at the history of the "new" Unix file system (from 1984), it also makes sense that everything is given in multiples of fragments (which is what "fr" in "f_frsize" stands for).

Regards
Christian
--
Christian Zietz  -  CHZ-Soft  -  czietz@xxxxxxx
WWW: https://www.chzsoft.de/
New GnuPG-Key-ID: 0x8708B34C827B159E



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/