I think it would be good to add compsize to Gentoo. It is a small tool that shows compression statistics of Btrfs filesystems. From the compsize GitHub page: https://github.com/kilobyte/compsize compsize takes a list of files (given as arguments) on a btrfs filesystem and measures used compression types and effective compression ratio, producing a report such as: [~]$ compsize /home Processed 140058 files, 133128 regular extents (196786 refs), 80886 inline. Type Perc Disk Usage Uncompressed Referenced TOTAL 93% 14G 15G 12G none 100% 13G 13G 10G zlib 41% 628M 1.4G 1.4G zstd 28% 42M 148M 148M
Created attachment 521368 [details] Compsize version 1.1 ebuild I wrote a (very simple) ebuild for this package.
Created attachment 521394 [details] Compsize version 1.1 ebuild
I think this bug can be closes as fixed. https://packages.gentoo.org/packages/sys-fs/compsize