Skip to content

Commit

Permalink
Correct count_uberblocks in mmp.kshlib
Browse files Browse the repository at this point in the history
A log_must call was causing count_uberblocks to return more
than just the uberblock count. Remove the log_must since it
was only logging a sleep.

Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Olaf Faaland <[email protected]>
Reviewed-by: loli10K <[email protected]>
Signed-off-by: Giuseppe Di Natale <[email protected]>
Closes openzfs#7191
  • Loading branch information
dinatale2 authored and tonyhutter committed Mar 8, 2018
1 parent c00e481 commit 24031f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/zfs-tests/tests/functional/mmp/mmp.kshlib
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,6 @@ function count_uberblocks # pool duration
typeset -i duration=$2
typeset hist_path="/proc/spl/kstat/zfs/$pool/multihost"

log_must sleep $duration
sleep $duration
echo $(cat "$hist_path" | sed '1,2d' | wc -l)
}

0 comments on commit 24031f5

Please sign in to comment.