I have a partition formated to btrfs and im willing to store there stuff that I don't use that often but which I need fast access from time to time (some dumps of my PS2 games for now) because I have read that btrfs can work wonders compressing data on the fly.
The thing is even when mounting this partition using the
compress-force=zlib option I can't notice any compression work at all.
/etc/fstab file display the following info for the drive in question:
LABEL=Emu /mnt/Emu btrfs compress-force=zlib,nosuid,nodev,nofail,comment=x-gvfs-show 0 0
The drive mounts fine and data can be written and read back. But no compression work is done, not with old files nor with new ones.
So far I've tested it by doing the following:
$ sudo dd if=/dev/sda6 of='/mnt/Emu/dummy.txt' bs=1M count=1024 $ sudo btrfs fi sync /mnt/Emu $ sudo du -h '/mnt/Emu/dummy.txt'
This generated a 1 GB file in said drive and told me the size of the file is indeed 1 GB so nothing has been compressed.
Also verified the size after using
chattr +c on said dummy file and then defragmenting the file/drive by using
btrfs fi defragment on them.
My systems specs:
- OS: Ubuntu 14.04 x86_64
- Kernel: 3.13.0-40-generic
- Btrfs: v3.12