How to Install btrfs-compsize in Ubuntu 18.04

Install btrfs-compsize by entering the following commands in the terminal:

sudo apt update
sudo apt install btrfs-compsize


calculate compression ratio of a set of files on btrfs

Compsize takes a list of files on a btrfs filesystem (recursing directories) and measures used compression types and the effective compression ratio. . Because of partially used extents on one hand, and multiple reflinks to an extent on the other, the definition of used space can be quite unintuitive. This program provides answers at different stages: * blocks on the disk * uncompressed extents * apparent file sizes (sans holes)


Version: 1.1-1

Section: universe/admin