mirror_zfs/man
Chunwei Chen 950e17c215 Fix zdb -R decompression
There are some issues in the zdb -R decompression implementation.

The first is that ZLE can easily decompress non-ZLE streams. So we add
ZDB_NO_ZLE env to make zdb skip ZLE.

The second is the random bytes appended to pabd, pbuf2 stuff. This serve
no purpose at all, those bytes shouldn't be read during decompression
anyway. Instead, we randomize lbuf2, so that we can make sure
decompression fill exactly to lsize by bcmp lbuf and lbuf2.

The last one is the condition to detect fail is wrong.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: loli10K <ezomori.nozomu@gmail.com>
Signed-off-by: Chunwei Chen <david.chen@nutanix.com>
Closes #7099
Closes #4984
2018-02-09 10:11:02 -08:00
..
man1 Extend deadman logic 2018-01-25 13:40:38 -08:00
man5 Remove deprecated zfs_arc_p_aggressive_disable 2018-02-07 11:54:20 -08:00
man8 Fix zdb -R decompression 2018-02-09 10:11:02 -08:00
Makefile.am Create mount.zfs, zinject, and zpios man pages. 2013-03-13 13:41:22 -07:00