All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Teigland <teigland@sourceware.org>
To: lvm-devel@redhat.com
Subject: master - tests: move vgsplit writecache
Date: Tue, 4 Feb 2020 11:21:22 -0500	[thread overview]
Message-ID: <97923.120020411211601827@us-mta-174.us.mimecast.lan> (raw)

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=c0de37ab1888a53cce97007c3f4fdfb6f85ab5bf
Commit:        c0de37ab1888a53cce97007c3f4fdfb6f85ab5bf
Parent:        c1ee6f0eef24a44cc02ec941f560bc17ac61b3d8
Author:        David Teigland <teigland@redhat.com>
AuthorDate:    Tue Feb 4 10:20:19 2020 -0600
Committer:     David Teigland <teigland@redhat.com>
CommitterDate: Tue Feb 4 10:20:19 2020 -0600

tests: move vgsplit writecache

to a different file
---
 test/shell/vgsplit-cache.sh    | 10 +---------
 test/shell/writecache-split.sh | 14 ++++++++++++++
 2 files changed, 15 insertions(+), 9 deletions(-)

diff --git a/test/shell/vgsplit-cache.sh b/test/shell/vgsplit-cache.sh
index 200f0a9..eba85be 100644
--- a/test/shell/vgsplit-cache.sh
+++ b/test/shell/vgsplit-cache.sh
@@ -70,8 +70,7 @@ test 3 -eq "$(get vg_field $vg1 pv_count)"
 
 lvremove -y $vg
 
-# dm-cache or dm-writecache with cachevol must not
-# separated main LV and cachevol
+# dm-cache with cachevol must not separated main LV and cachevol
 
 vgremove -ff $vg
 vgremove -ff $vg1
@@ -85,11 +84,4 @@ fail vgsplit $vg $vg1 "$dev2"
 fail vgsplit $vg $vg1 "$dev3"
 lvremove $vg/$lv1
 
-lvcreate -L6 -n $lv1 -an $vg "$dev2"
-lvcreate -L6 -n $lv2 -an $vg "$dev3"
-lvconvert -y --type writecache --cachevol $lv2 $vg/$lv1
-fail vgsplit $vg $vg1 "$dev2"
-fail vgsplit $vg $vg1 "$dev3"
-lvremove $vg/$lv1
-
 vgremove -ff $vg
diff --git a/test/shell/writecache-split.sh b/test/shell/writecache-split.sh
index 6a7a2cd..7168d02 100644
--- a/test/shell/writecache-split.sh
+++ b/test/shell/writecache-split.sh
@@ -126,3 +126,17 @@ vgchange -an $vg
 vgextend --restoremissing $vg "$dev3"
 
 vgremove -ff $vg
+
+#
+# vgsplit should not separate cachevol from main lv
+#
+
+vgcreate $vg "$dev1" "$dev2" "$dev3" "$dev4"
+lvcreate -L6 -n $lv1 -an $vg "$dev2"
+lvcreate -L6 -n $lv2 -an $vg "$dev3"
+lvconvert -y --type writecache --cachevol $lv2 $vg/$lv1
+fail vgsplit $vg $vg1 "$dev2"
+fail vgsplit $vg $vg1 "$dev3"
+lvremove $vg/$lv1
+
+vgremove -ff $vg




                 reply	other threads:[~2020-02-04 16:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=97923.120020411211601827@us-mta-174.us.mimecast.lan \
    --to=teigland@sourceware.org \
    --cc=lvm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.