Correct count_uberblocks in mmp.kshlib

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 <behlendorf1@llnl.gov>
Reviewed-by: Olaf Faaland <faaland1@llnl.gov>
Reviewed-by: loli10K <ezomori.nozomu@gmail.com>
Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Closes #7191
This commit is contained in:
Giuseppe Di Natale 2018-02-20 16:28:52 -08:00 committed by Brian Behlendorf
parent 163a8c28dd
commit f2c0dee23b
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}