Skip to content

Commit

Permalink
Merge pull request openzfs#781 from delphix/dlpx/pr/bharath.malemarpu…
Browse files Browse the repository at this point in the history
…ram/957ea4f7-d0ae-4d72-b281-a620d3c5f9bd

QA-38583 zfs_clone_livelist_condense_and_disable fails with "Unexpected livelist size" on object store
  • Loading branch information
bharath-delphix authored Apr 20, 2023
2 parents b5eea09 + d804cac commit 4effc6c
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,24 @@ function cleanup

function check_ll_len
{
string="$(zdb -vvvvv $TESTPOOL | grep "Livelist")"
zdb_output=$(mktemp)
run_zdb -e "-vvvvv" -p "$TESTPOOL" > "$zdb_output" 2>&1
if [[ $? -ne 0 ]]; then
log_note "Output: zdb -vvvvv $TESTPOOL"
cat "$zdb_output"
rm -f "$zdb_output"
log_fail "zdb detected errors with: '$TESTPOOL'"
fi
string=$(grep "Livelist" "$zdb_output")
substring="$1"
msg=$2
if test "${string#*$substring}" != "$string"; then
return 0 # $substring is in $string
else
log_note $string
log_note $string
log_fail "$msg" # $substring is not in $string
fi
rm -f "$zdb_output"
}

function test_condense
Expand Down

0 comments on commit 4effc6c

Please sign in to comment.