Skip to content

Commit

Permalink
Merge pull request openzfs#626 from delphix/dlpx/pr/vaibhav-delphix/e…
Browse files Browse the repository at this point in the history
…48aaf5d-4fc0-4683-baf8-fff3eec430ab

QA-37442 ZTS: zdb_decompress_zstd failed to decompress the data to the expected length (131133 != 131072)
  • Loading branch information
vaibhav-delphix authored Sep 20, 2022
2 parents d1f2bba + 4a745b1 commit 556c08e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ log_note "ZSTD level $zstd_level"

IFS=':' read -r vdev offset _ <<<"$dva"
# Check the first 1024 bytes
output=$(ZDB_NO_ZLE="true" run_zdb -e "-R" -p "$TESTPOOL $vdev:$offset:$size_str:dr" 2> /dev/null)
output=$(ZDB_NO_ZLE="true" run_zdb -q -e "-R" -p "$TESTPOOL $vdev:$offset:$size_str:dr" 2> /dev/null)
(( ${#output} + 1 != $blksize )) && log_fail \
"zdb -Z failed to decompress the data to the expected length (${#output} != $lsize_bytes)"
cmp $init_data - <<< "$output" ||
Expand Down

0 comments on commit 556c08e

Please sign in to comment.