aboutsummaryrefslogtreecommitdiffstats
path: root/man/man8
diff options
context:
space:
mode:
authorChunwei Chen <[email protected]>2018-02-01 16:19:36 -0800
committerBrian Behlendorf <[email protected]>2018-02-09 10:11:02 -0800
commit950e17c215be4e6da72a61b0431337643a82b509 (patch)
tree9e315a3599e3085703a8f5772eed762e1464ddc1 /man/man8
parent0c0b0ad48addf342fcff29253a40282c00d5ce65 (diff)
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 <[email protected]> Reviewed-by: loli10K <[email protected]> Signed-off-by: Chunwei Chen <[email protected]> Closes #7099 Closes #4984
Diffstat (limited to 'man/man8')
-rw-r--r--man/man8/zdb.84
1 files changed, 3 insertions, 1 deletions
diff --git a/man/man8/zdb.8 b/man/man8/zdb.8
index d69d6f529..0ce4d852d 100644
--- a/man/man8/zdb.8
+++ b/man/man8/zdb.8
@@ -248,7 +248,9 @@ and, optionally,
.It Sy b Ar offset
Print block pointer
.It Sy d
-Decompress the block
+Decompress the block. Set environment variable
+.Nm ZBD_NO_ZLE
+to skip zle when guessing.
.It Sy e
Byte swap the block
.It Sy g