All of lore.kernel.org
 help / color / mirror / Atom feed
* dev-next - tests: update for newer thin-pool
@ 2021-03-31 21:49 David Teigland
  0 siblings, 0 replies; only message in thread
From: David Teigland @ 2021-03-31 21:49 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=1d6e1d08a887d602234485f0214edc3552e843e0
Commit:        1d6e1d08a887d602234485f0214edc3552e843e0
Parent:        51ac56a05e9da2c28ef5047345468fed4946078a
Author:        Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate:    Fri Mar 26 16:53:18 2021 +0100
Committer:     Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Fri Mar 26 20:39:41 2021 +0100

tests: update for newer thin-pool

Newer thin-pool handle metadata read-only recovery better.
---
 test/shell/thin-flags.sh | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/test/shell/thin-flags.sh b/test/shell/thin-flags.sh
index 78a4b2cd7..89ed69ac9 100644
--- a/test/shell/thin-flags.sh
+++ b/test/shell/thin-flags.sh
@@ -98,7 +98,22 @@ not lvcreate -V10 -n $lv3 $vg/pool
 lvs -ao+seg_pe_ranges $vg
 
 # needs_check needs newer version
-if aux have_thin 1 16 0 ; then
+if aux have_thin 1 19 0 ; then
+	check lv_attr_bit state $vg/pool "a"
+
+	dmsetup suspend $vg-pool-tpool
+
+	check lv_attr_bit state $vg/pool "s"
+
+	dmsetup resume $vg-pool-tpool
+
+	lvresize -L+2M $vg/pool_tmeta
+
+	# Newer version recovers when metadata grow up
+	check lv_attr_bit state $vg/pool "a"
+	check lv_field $vg/pool lv_health_status ""
+
+elif aux have_thin 1 16 0 ; then
 	check lv_attr_bit state $vg/pool "c"
 	check lv_field $vg/pool lv_check_needed "check needed"
 



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-31 21:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-31 21:49 dev-next - tests: update for newer thin-pool David Teigland

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.