Mailinglist Archive: opensuse-factory (602 mails)

< Previous Next >
Re: [opensuse-factory] zypper dup disk space requirement
  • From: "Carlos E. R." <robin.listas@xxxxxxxxxxxxxx>
  • Date: Thu, 7 Feb 2019 16:42:07 +0100 (CET)
  • Message-id: <alpine.LSU.2.21.1902071634050.16251@Legolas.valinor>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



El 2019-02-07 a las 15:39 +0100, Bernhard Voelker escribió:
On 2/7/19 12:47 PM, Carlos E. R. wrote:
El 2019-02-07 a las 11:30 +0100, Richard Brown escribió:
You're mixing up different units

The device is 68G, that is 63GiB in size
df says 61G is used with 6.1G free (56GiB used, 5.6GiB free)
btrfs fi df / says 60.735GiB is used, therefore just over 2GiB free

Do you want a bug report about 'df' using GiB but saying G? Because it is a bug,
the units used should be GiB or GB according the the IEEE and other
institutions.
If I see 'GiB' I know what it is, if it says 'G' I don't know, if it says 'GB'
I have doubts whether they follow the standard or the deprecated standard. >:-)

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

Was not me :-)


-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:

Then maybe POSIX has to be changed ;-p

So yes, the situation is 'worse' than what df says..or in other words,
df spit out useless nonsense that is not suitable for measuring the
available space, and really shouldn't be used as the basis for any
meaningful discussions

OK! :-)

I disagree: as already stated, BTRFS does not expose the right (or useful?)
numbers to the statfs(2) system call, so df(1) just displays what it gets
from BTRFS. There's nothing wrong with df(1).
Analogy: if you tell 'echo' to print "pig", then it won't print "pork".

Ah... sigh :-(

- -- Cheers
Carlos E. R.

(from openSUSE 15.0 (Legolas))

-----BEGIN PGP SIGNATURE-----

iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCXFxRzxwccm9iaW4ubGlz
dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVqVQAn224z3/BCGPNccVNTpkc
61o+X3nPAJwPBUA8+OvnzwvM3aUEnhXRMn8Jtg==
=06K5
-----END PGP SIGNATURE-----
< Previous Next >