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 12:47:48 +0100 (CET)
  • Message-id: <alpine.LSU.2.21.1902071237080.16251@Legolas.valinor>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



El 2019-02-07 a las 11:30 +0100, Richard Brown escribió:

On Thu, 7 Feb 2019 at 11:15, Carlos E. R. <robin.listas@xxxxxxxxxxxxxx> wrote:

Ok; then he said:

woodstock:~ # btrfs fi df /
Data, single: total=60.43GiB, used=59.82GiB
System, single: total=32.00MiB, used=16.00KiB
Metadata, single: total=2.03GiB, used=915.50MiB

So there is (rough aprox):

1 GB of data space available
31 MB of system space available
1 GB of metadata space available

whereas

woodstock:~ # df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 68G 61G 6.1G 91% /


So basically btrfs tools says 1 G free, df says 6. The situation is much
worse than what df says, right?

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

And yes, I wrote by mistake GB instead of GiB in my previous post.


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

- -- Cheers
Carlos E. R.

(from openSUSE 15.0 (Legolas))

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

iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCXFwa5Bwccm9iaW4ubGlz
dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfV5TcAnAnGR4hMNtDtpBaLShN9
1SjkKclzAJ9LojV6LnGw38akRcswfTBv5c7mlg==
=TxzS
-----END PGP SIGNATURE-----
< Previous Next >
Follow Ups