39 lines
1.4 KiB
Diff
39 lines
1.4 KiB
Diff
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: Giuseppe Di Natale <dinatale2@users.noreply.github.com>
|
||
|
Date: Tue, 20 Feb 2018 16:28:52 -0800
|
||
|
Subject: [PATCH] Correct count_uberblocks in mmp.kshlib
|
||
|
MIME-Version: 1.0
|
||
|
Content-Type: text/plain; charset=UTF-8
|
||
|
Content-Transfer-Encoding: 8bit
|
||
|
|
||
|
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
|
||
|
(cherry picked from commit d5b10b3ef3b5e82b9e5a9bee122f1a0be007dae2)
|
||
|
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
||
|
---
|
||
|
tests/zfs-tests/tests/functional/mmp/mmp.kshlib | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/tests/zfs-tests/tests/functional/mmp/mmp.kshlib b/tests/zfs-tests/tests/functional/mmp/mmp.kshlib
|
||
|
index 4c46ae7a2..1f8d66fd9 100644
|
||
|
--- a/tests/zfs-tests/tests/functional/mmp/mmp.kshlib
|
||
|
+++ b/tests/zfs-tests/tests/functional/mmp/mmp.kshlib
|
||
|
@@ -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)
|
||
|
}
|
||
|
--
|
||
|
2.14.2
|
||
|
|