Skip to contentSkip to conversation

converting lzo compression to zlib compression?

DISCUSSION Tomasz Chmielewski 3 participants 3 messages Jun 16, 2013 – Jun 17, 2013 Btrfs file system

lore
Share & tools
lore
#0 lore raw

I have a btrfs filesystem mounted with "compress=lzo" now.

I'd like to see how much space would I save by converting it to zlib.

Would it be possible to convert lzo compression to zlib compression with the following:

- mount the filesystem with "compress=zlib"
- run balance
- when balance finishes, the data would be compressed with zlib

Would this work as above, or do I have to copy the data out and back to convert from lzo compression to zlib compression?

Signature · 2 lines
Tomasz Chmielewski
http://wpkg.org
#1 lore raw
Quoted 8 lines · Tomasz Chmielewski

I have a btrfs filesystem mounted with "compress=lzo" now.

I'd like to see how much space would I save by converting it to zlib.

Would it be possible to convert lzo compression to zlib compression with the following:

Quoted 6 lines

- mount the filesystem with "compress=zlib"
- run balance
- when balance finishes, the data would be compressed with zlib

Would this work as above, or do I have to copy the data out and back to convert from lzo compression to zlib compression?

Hi,

I'm afraid the above won't work, cause balance is not aware of the compression so that it won't decompress the data.

thanks,
liubo

Quoted 11 lines
Signature · 9 lines
-- 
Tomasz Chmielewski
http://wpkg.org


--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw
In reply to Tomasz Chmielewski
Quoted 6 lines · Tomasz Chmielewski

I'd like to see how much space would I save by converting it to zlib.

Would it be possible to convert lzo compression to zlib compression with the following:

- mount the filesystem with "compress=zlib"

- run defrag on all desired files with -czlib

david