]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a "zstream decompress" subcommand
authorAlan Somers <asomers@gmail.com>
Fri, 24 Jun 2022 20:28:42 +0000 (14:28 -0600)
committerGitHub <noreply@github.com>
Fri, 24 Jun 2022 20:28:42 +0000 (13:28 -0700)
commitccf89b39fe7f30dd53aec69e04de3f2728c7387c
treeef94f9dedc97cd72e062df83453f0e0f8d36dd52
parent1c0c729ab4165cd828fbeab404353b45b3836360
Add a "zstream decompress" subcommand

It can be used to repair a ZFS file system corrupted by ZFS bug #12762.
Use it like this:

zfs send -c <DS> | \
zstream decompress <OBJECT>,<OFFSET>[,<COMPRESSION_ALGO>] ... | \
zfs recv <DST_DS>

Reviewed-by: Ahelenia ZiemiaƄska <nabijaczleweli@nabijaczleweli.xyz>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Allan Jude <allan@klarasystems.com>
Signed-off-by: Alan Somers <asomers@gmail.com>
Sponsored-by: Axcient
Workaround for #12762
Closes #13256
cmd/zstream/Makefile.am
cmd/zstream/zstream.c
cmd/zstream/zstream.h
cmd/zstream/zstream_decompress.c [new file with mode: 0644]
cmd/zstream/zstream_dump.c
cmd/zstream/zstream_redup.c
man/man8/zstream.8