btrfs-progs icon indicating copy to clipboard operation
btrfs-progs copied to clipboard

RFE: `btrfs property set` should allow setting compression level

Open michel-slm opened this issue 5 years ago • 5 comments

Per man 8 btrfs-property, btrfs property can be used to set the compression algorithm for a btrfs object (file/directory/subvol/filesystem). It doesn't seem to allow setting the compression level though.

Adding support would be very useful, as currently the level needs to be set for the entire filesystem in fstab, and can't be easily overridden (e.g. I might want to set a higher compression level for archived files or folders containing files of a certain type, and a lower one for heavily used files)

michel-slm avatar Dec 28 '20 21:12 michel-slm

Progs has supported adding the level for a while but the kernel code is missing so the level is ignored. It's actually possible to set up to 16k string as compression level ...

jkansanen avatar Jan 06 '21 12:01 jkansanen

Related #309.

cmurf avatar Jan 17 '21 00:01 cmurf

@jkansanen Any news on this feature? I've been trying to find out but it seems to have stalled.

GatienVilain avatar Aug 27 '23 19:08 GatienVilain