mirror_zfs/cmd/zstream
Alan Somers a1034ee909
zstream: allow decompress to fix metadata for uncompressed records
If a record is uncompressed on-disk but the block pointer insists
otherwise, reading it will return EIO.  This commit adds an "off" type
to the "zstream decompress" command.  Using it will set the compression
field in a zfs stream to "off" without changing the record's data.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by:	Alan Somers <asomers@FreeBSD.org>
Sponsored by:	Axcient
Closes #13997
2022-10-14 13:40:00 -07:00
..
Makefile.am Add a "zstream decompress" subcommand 2022-06-24 13:28:42 -07:00
zstream_decompress.c zstream: allow decompress to fix metadata for uncompressed records 2022-10-14 13:40:00 -07:00
zstream_dump.c Fix unreachable code in zstreamdump 2022-09-29 10:16:37 -07:00
zstream_redup.c Add a "zstream decompress" subcommand 2022-06-24 13:28:42 -07:00
zstream_token.c Fix userland dereference NULL return value bugs 2022-09-30 17:02:57 -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