mirror_zfs/cmd/zstream
Alan Somers ccf89b39fe
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
2022-06-24 13:28:42 -07:00
..
Makefile.am Add a "zstream decompress" subcommand 2022-06-24 13:28:42 -07:00
zstream_decompress.c Add a "zstream decompress" subcommand 2022-06-24 13:28:42 -07:00
zstream_dump.c Add a "zstream decompress" subcommand 2022-06-24 13:28:42 -07:00
zstream_redup.c Add a "zstream decompress" subcommand 2022-06-24 13:28:42 -07:00
zstream_token.c Forbid b{copy,zero,cmp}(). Don't include <strings.h> for <string.h> 2022-03-15 15:13:48 -07:00
zstream.c Add a "zstream decompress" subcommand 2022-06-24 13:28:42 -07:00
zstream.h Add a "zstream decompress" subcommand 2022-06-24 13:28:42 -07:00