Skip to contentSkip to conversation

Compession, on filesystem or volume?

DISCUSSION Remco Hosman 3 participants 3 messages Dec 29, 2011 Btrfs file system

lore
Share & tools
lore
#0 lore raw

Hi,

Something i could not find in the documentation i managed to find:
if you mount with compress=lzo and rebalance, is compression on for that filesystem or only a single volume?

eg, can i have a @boot volume uncompressed and @ and @home compressed.

Thanks,
Remco

#1 lore raw
Quoted 7 lines · Remco Hosman

Hi,

Something i could not find in the documentation i managed to find:
if you mount with compress=lzo and rebalance, is compression on for that filesystem or only a single volume?

eg, can i have a @boot volume uncompressed and @ and @home compressed.

Last time I asked a similar question, the answer was no. It's per filesystem.

however you can change compression of individual files between zlib/lzo using "btrfs fi defragment -c", regardless of what the filesystem is currently mounted with.

Signature · 1 line
Fajar
#2 lore raw
Quoted 7 lines · Fajar A. Nugraha
Quoted 6 lines · Remco Hosman

Hi,

Something i could not find in the documentation i managed to find:
if you mount with compress=lzo and rebalance, is compression on for that filesystem or only a single volume?

Quoted 8 lines
Quoted 1 line

eg, can i have a @boot volume uncompressed and @ and @home compressed.

Last time I asked a similar question, the answer was no. It's per filesystem.

however you can change compression of individual files between zlib/lzo using "btrfs fi defragment -c", regardless of what the filesystem is currently mounted with.

for individual files and directories, we can also set them compress via FS_IOC_SETFLAGS.

thanks,
liubo