Skip to contentSkip to conversation

btrfs: user space tool to force compression

DISCUSSION Matwey V. Kornilov 2 participants 2 messages Oct 2, 2015 Btrfs file system

lore
Share & tools
lore
#0 lore raw

Hello,

Is there a way (and appropriate user space tool) to force compression of existing file? I mean there was directory with some content and then I set compression attribute (property) to it. How to force data recompression?

#1 lore raw
Quoted 5 lines · Matwey V. Kornilov

Hello,

Is there a way (and appropriate user space tool) to force compression of existing file? I mean there was directory with some content and then I set compression attribute (property) to it. How to force data recompression?

btrfs fi defrag -c <file>

Hugo.

Signature · 4 lines
Hugo Mills             | A cross? Oy vey, have you picked the wrong vampire!
hugo@... carfax.org.uk |
http://carfax.org.uk/  |
PGP: E2AB1DE4          |