mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 01:51:00 +03:00
9f4ede63d2
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
22 lines
416 B
Makefile
22 lines
416 B
Makefile
sbin_PROGRAMS += zstream
|
|
CPPCHECKTARGETS += zstream
|
|
|
|
zstream_SOURCES = \
|
|
%D%/zstream.c \
|
|
%D%/zstream.h \
|
|
%D%/zstream_decompress.c \
|
|
%D%/zstream_dump.c \
|
|
%D%/zstream_recompress.c \
|
|
%D%/zstream_redup.c \
|
|
%D%/zstream_token.c
|
|
|
|
zstream_LDADD = \
|
|
libzfs.la \
|
|
libzfs_core.la \
|
|
libzpool.la \
|
|
libnvpair.la
|
|
|
|
PHONY += install-exec-hook
|
|
install-exec-hook:
|
|
cd $(DESTDIR)$(sbindir) && $(LN_S) -f zstream zstreamdump
|