All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zdenek Kabelac <zkabelac@sourceware.org>
To: lvm-devel@redhat.com
Subject: master - tests: add check for rename of cached vdopool
Date: Wed, 23 Sep 2020 12:59:36 +0000 (GMT)	[thread overview]
Message-ID: <20200923125936.B5985398E490@sourceware.org> (raw)

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=39cdc1469d192e48bf5e1b39fc51a42c64e46ab6
Commit:        39cdc1469d192e48bf5e1b39fc51a42c64e46ab6
Parent:        cfc4dd4c7cb39354525866c9cd1b3c6442a6f558
Author:        Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate:    Wed Sep 23 13:22:08 2020 +0200
Committer:     Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Wed Sep 23 14:47:30 2020 +0200

tests: add check for rename of cached vdopool

---
 test/shell/lvcreate-vdo-cache.sh | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/test/shell/lvcreate-vdo-cache.sh b/test/shell/lvcreate-vdo-cache.sh
index b502986b4..c31ccccda 100644
--- a/test/shell/lvcreate-vdo-cache.sh
+++ b/test/shell/lvcreate-vdo-cache.sh
@@ -32,10 +32,22 @@ export MKE2FS_CONFIG="$TESTDIR/lib/mke2fs.conf"
 
 aux prepare_vg 1 9000
 
-lvcreate --vdo -L4G -V2G --name $lv1 $vg/vpool
+lvcreate --vdo -L4G -V2G --name $lv1 $vg/vpool1
 
 # Test caching VDOPoolLV
-lvcreate -H -L10 $vg/vpool
+lvcreate -H -L10 $vg/vpool1
+
+# Current VDO target driver cannot handle online rename
+# once this will be supported - update this test
+not lvrename $vg/vpool1 $vg/vpool 2>&1 | tee out
+grep "Cannot rename" out
+
+lvchange -an $vg
+
+# Ofline should work
+lvrename $vg/vpool1 $vg/vpool
+
+lvchange -ay $vg
 
 mkfs.ext4 -E nodiscard "$DM_DEV_DIR/$vg/$lv1"
 



                 reply	other threads:[~2020-09-23 12:59 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=20200923125936.B5985398E490@sourceware.org \
    --to=zkabelac@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.