Skip to contentSkip to conversation

BTRFS support per-subvolume compression, isn't it?

DISCUSSION Eugene Bright 2 participants 2 messages Aug 28, 2018 Btrfs file system

lore
Share & tools
lore
#0 lore raw

Greetings!

BTRFS wiki says there is no per-subvolume compression option [1].

At the same time next command allow me to set properties per-subvolume:
btrfs property set /volume compression zstd

Corresponding get command shows distinct properties for every subvolume. Should wiki be updated?

Signature · 6 lines
King regards
Eugene Bright
IT engineer

--------
[1] https://btrfs.wiki.kernel.org/index.php/Compression#Can_I_set_compression_per-subvolume.3F
#1 lore raw
Quoted 10 lines · Eugene Bright

Greetings!

BTRFS wiki says there is no per-subvolume compression option [1].

At the same time next command allow me to set properties per-subvolume:
btrfs property set /volume compression zstd

Corresponding get command shows distinct properties for every subvolume. Should wiki be updated?

The wiki should be updated, but it's not technically wrong.

What the wiki is talking about is per-subvolume mount options to control compression (so, mounting individual subvolumes from the same volume with different compress= or compress-force= mount options), which is not currently supported.

You are correct though that properties can be used to achieve a similar result (compressing differently for different subvolumes.