Displays reserved space as free space
Moving this from https://pagure.io/fedora-workstation/issue/101, look at how much space I have free on /home and /:
I noticed the display of free space is different than reported by nautilus and originally thought it was a nautilus bug, but nautilus agrees with df. Assuming df isn't broken, which seems safe, that means Disks is somehow wrong.
Disks reports my / is 75 GB (correct, assuming df rounds down to 74 GB and Disks rounds up) with 27 GB free, but actually I have 24 GB free, as reported by df (too big to be a rounding difference). It reports my /home is 924 GB (incorrect, df says 909 GB) with 687 GB free (incorrect, df says 641 GB free).
Notably, 687 GB is ~640 GiB, so if there's not some unit conversion error here, that would be an amazing coincidence. The result is as if the result were computed in GB, then converted from GiB to GB by mistake, given that the value was already in GB. So probably a bad unit conversation somewhere.
Here are my results from df in GB:
$ df -H
Filesystem Size Used Avail Use% Mounted on
devtmpfs 34G 0 34G 0% /dev
tmpfs 34G 0 34G 0% /dev/shm
tmpfs 34G 2.3M 34G 1% /run
tmpfs 34G 0 34G 0% /sys/fs/cgroup
/dev/mapper/fedora-root 74G 47G 24G 67% /
tmpfs 34G 7.7M 34G 1% /tmp
/dev/nvme0n1p2 1.1G 227M 727M 24% /boot
/dev/mapper/fedora-home 909G 222G 641G 26% /home
/dev/nvme0n1p1 210M 19M 191M 9% /boot/efi
tmpfs 6.8G 20M 6.8G 1% /run/user/1000
Same results except in GiB:
$ df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 32G 0 32G 0% /dev
tmpfs 32G 0 32G 0% /dev/shm
tmpfs 32G 2.2M 32G 1% /run
tmpfs 32G 0 32G 0% /sys/fs/cgroup
/dev/mapper/fedora-root 69G 44G 22G 67% /
tmpfs 32G 7.3M 32G 1% /tmp
/dev/nvme0n1p2 976M 217M 693M 24% /boot
/dev/mapper/fedora-home 846G 206G 597G 26% /home
/dev/nvme0n1p1 200M 18M 182M 9% /boot/efi
tmpfs 6.3G 19M 6.3G 1% /run/user/1000