summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2019-11-26 16:31:38 -0600
committerDavid Teigland <teigland@redhat.com>2019-11-26 16:52:28 -0600
commitb400353c71397954a7cc4c4b52b9570715104773 (patch)
treeb272be0ba285016f43efb96bd921a095203ee6ef
parenta61272a6f048e56ea75e34ad190af10ff9773c8c (diff)
downloadlvm2-b400353c71397954a7cc4c4b52b9570715104773.tar.gz
tests hints: update check for io count
Running a reporting command on a VG now includes one additional read to check the mda_header for any change to the vg between scan and lock.
-rw-r--r--test/shell/hints.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/shell/hints.sh b/test/shell/hints.sh
index 019912e33..f95505a20 100644
--- a/test/shell/hints.sh
+++ b/test/shell/hints.sh
@@ -52,15 +52,17 @@ pvs
grep -v -E "$dev1|$dev2" $HINTS > tmptest
not grep scan: tmptest
-# test that 'pvs' submits only two reads, one for each PV in hints
+# test that 'pvs' submits only three reads, one for each PV in hints
+# for initial scan, and one more in vg_read rescan check
if [ -e "/usr/bin/strace" ]; then
strace -e io_submit pvs 2>&1|tee tmptest
-test "$(grep io_submit tmptest | wc -l)" -eq 2
+test "$(grep io_submit tmptest | wc -l)" -eq 3
-# test that 'pvs -a' submits six reads, one for each device
+# test that 'pvs -a' submits seven reads, one for each device,
+# and one more in vg_read rescan check
strace -e io_submit pvs -a 2>&1|tee tmptest
-test "$(grep io_submit tmptest | wc -l)" -eq 6
+test "$(grep io_submit tmptest | wc -l)" -eq 7
fi
#