HomeFreeBSD

Add ability to recompress send streams with new compression algorithm

Description

Add ability to recompress send streams with new compression algorithm

As new compression algorithms are added to ZFS, it could be useful for
people to recompress data with new algorithms. There is currently no
mechanism to do this aside from copying the data manually into a new
filesystem with the new algorithm enabled. This tool allows the
transformation to happen through zfs send, allowing it to be done
efficiently to remote systems and in an incremental fashion.

A new zstream command is added that decompresses WRITE records and
then recompresses them with a provided algorithm, and then re-emits
the modified send stream. It may also be possible to re-compress
embedded block pointers, but that was not attempted for the initial
version.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Signed-off-by: Paul Dagnelie <pcd@delphix.com>
Closes #14106

Details

Provenance
pcd_delphix.comAuthored on Nov 10 2022, 11:23 PM
GitHub <noreply@github.com>Committed on Nov 10 2022, 11:23 PM
Parents
rGe9ab9e512c27: ZTS: random_readwrite test doesn't run correctly
Branches
Unknown
Tags
Unknown