HomeFreeBSD

Add a "zstream decompress" subcommand

Description

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

Details

Provenance
asomersAuthored on Jun 24 2022, 8:28 PM
GitHub <noreply@github.com>Committed on Jun 24 2022, 8:28 PM
Parents
rG1c0c729ab416: Several sorted scrub optimizations
Branches
Unknown
Tags
Unknown