Upgrading ZFS compression

Johan Hendriks joh.hendriks at gmail.com
Mon Aug 19 17:23:56 UTC 2013


Op maandag 19 augustus 2013 schreef Ivan Voras (ivoras at freebsd.org):

> Hello,
>
> Just a quick question: if I have a file system with LZJB, write a file
> on it so it gets compressed, then change the compression setting on the
> file system to LZ4, will new random writes to the file use the new
> compression algorithm?
>
> By looking at the data structures (dnode_phys_t) it looks like the
> compression is set per-file object, so no.
>
> OTOH, new files on the file system will pick up new compression
> settings, right?


 As far as i know all new files put on the dataset will be compressed using
the new compression type.

Regards
Johan


More information about the freebsd-fs mailing list