-
'btrfs filesystem show' only used to report rounded human readable size figures. Therefore the actual figure could have been anywhere within the rounding limit. GParted also applied a heuristic to snap the file system size figure to the partition size if the partition size was within the rounding limit of the reported file system size [1]. btrfs-progs v4.1 added the --raw option to print the figures in bytes [2][3][4]. # btrfs filesystem show --raw /dev/sdb1 Label: none uuid: 003a619e-856f-4b9c-bd29-4d0ae0296d66 Total devices 2 FS bytes used 178765824 devid 1 size 2147483648 used 239861760 path /dev/sdb1 devid 2 size 2147483648 used 436207616 path /dev/sdc1 Since the oldest supported distributions now use btrfs-progs v4.5.3 and later (see the distribution End-of-Life table in the previous commit message), unconditionally use this to get accurate figures. [1] 7fc16a1b Handle btrfs tools rounding of figures (#499202) [2] btrfs-progs: Allow "filesystem show" command to handle different units https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git/commit/?id=15379fa2257bf937cf7830c0b1b79f2daf5df72c [3] btrfs-progs: docs: new size options for fi show https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git/commit/?id=81225f11d9ea58590476612e69211113ddb9b943 [4] Btrfs progs release 4.1 https://lore.kernel.org/linux-btrfs/20150622150023.GX6761@twin.jikos.cz/ Closes !105 - Update used btrfs file system commands, new minimum is btrfs-progs 4.5
db5df60f