Recursively disabling compression on a folder in a BTRFS
Wed May 24, 2023 · 78 words · 1 min

Let's say you have enabled (heavy) compression on your BTRFS partition, but you have a folder for e.g. compilation that is touched very often.

You'd like to disable compression for that folder (and all of its content) to speed things up:

❯ find . -exec sudo btrfs property set '{}' compression none \;

I might be an idiot, but I'm pretty sure I won't remember this next time I need it, and I couldn't find anything online, so here it is.


Games · Blog · About · home