Mailinglist Archive: opensuse-factory (602 mails)

< Previous Next >
Re: [opensuse-factory] Re: zypper dup disk space requirement - mebi units
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/02/2019 19.07, Bernhard Voelker wrote:
On 2/7/19 3:55 PM, Andreas Schwab wrote:
On Feb 07 2019, Bernhard Voelker <mail@xxxxxxxxxxxxxxxxxxx>
wrote:

You asked df(1) to output with "-human-readable" size, and
that's what it did:

-h, --human-readable print sizes in powers of 1024 (e.g.,
1023M)

GNU coreutils follows POSIX here, so there's nothing wrong with
the output you got:

df -h is an extension, so POSIX doesn't really come into play
here.

True. BTW: also the *BSDs have 'df -h' with the same units, so
there's some compatibility to consider.

And, "M" without suffix is a Mebibyte (short MiB, 2^20 = 1 048
576), while "MB" stands for Megabyte (10^6 = 1 000 000). Therefore,
the use of K/M/G/T/P/E/Z/Y without the 'B' suffix are correct, no?

I don't find a reference for that on the wikipedia.

<https://en.wikipedia.org/wiki/Mebibyte>

- --
Cheers / Saludos,

Carlos E. R.

(from openSUSE 15.0 (Legolas))
-----BEGIN PGP SIGNATURE-----

iF0EARECAB0WIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCXFx7eAAKCRC1MxgcbY1H
1fj1AJsEPcTZ9t59et2mt57bQUghL/Nc9ACfa7xeBjbLCz12qGiETbSZHUqgvLY=
=QiMU
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups