Skip to contentSkip to conversation

forcing compression?

DISCUSSION Tomasz Chmielewski 1 participant 1 message Jul 8, 2009 Btrfs file system

lore
Share & tools
lore
#0 lore raw

Right now, btrfs will decide on its own if the file is compressible or now.

It mostly works fine, but such detection will fail i.e. in case of disk images, where one may explicitly want to make sure the compression is used.

Is there a way to force compression?

# chattr +c disk.img
chattr: Operation not supported while setting flags on disk.img
Signature · 2 lines
Tomasz Chmielewski
http://wpkg.org