]> granicus.if.org Git - zfs/commitdiff
Correct count_uberblocks in mmp.kshlib
authorGiuseppe Di Natale <dinatale2@users.noreply.github.com>
Wed, 21 Feb 2018 00:28:52 +0000 (16:28 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 21 Feb 2018 00:28:52 +0000 (16:28 -0800)
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

tests/zfs-tests/tests/functional/mmp/mmp.kshlib

index 4c46ae7a2add991720b5d2841d8d24cf38b05c7f..1f8d66fd962c68934bac78629c9faae5666d8b5e 100644 (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)
 }