All of lore.kernel.org
 help / color / mirror / Atom feed
* main - tests: check for cache support presence
@ 2021-02-01 11:47 Zdenek Kabelac
  0 siblings, 0 replies; only message in thread
From: Zdenek Kabelac @ 2021-02-01 11:47 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=b26e565ee5d27314a58cba31e0a017d927698440
Commit:        b26e565ee5d27314a58cba31e0a017d927698440
Parent:        19ddad12cae6b8c6a8011876302dd968ae3ddbeb
Author:        Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate:    Fri Jan 22 18:45:00 2021 +0100
Committer:     Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Mon Feb 1 12:13:49 2021 +0100

tests: check for cache support presence

---
 test/shell/dev-aliases.sh | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/test/shell/dev-aliases.sh b/test/shell/dev-aliases.sh
index c97cd5da2..c3e4c7c53 100644
--- a/test/shell/dev-aliases.sh
+++ b/test/shell/dev-aliases.sh
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 
-# Copyright (C) 2012 Red Hat, Inc. All rights reserved.
+# Copyright (C) 2021 Red Hat, Inc. All rights reserved.
 #
 # This copyrighted material is made available to anyone wishing to use,
 # modify, copy, or redistribute it subject to the terms and conditions
@@ -14,9 +14,9 @@ SKIP_WITH_LVMPOLLD=1
 
 . lib/inittest
 
-aux prepare_devs 3
+aux have_cache 1 10 0 || skip
 
-vgcreate $vg $dev1 $dev2 $dev3
+aux prepare_vg 3
 
 #
 # This lvconvert command will deactivate LV1, then internally create a new
@@ -37,13 +37,13 @@ vgcreate $vg $dev1 $dev2 $dev3
 # wiping code would fail to open that stale name.
 #
 
-lvcreate -n $lv1 -L32M $vg $dev1
-lvcreate -n $lv2 -L16M $vg $dev2
+lvcreate -n $lv1 -L32M $vg "$dev1"
+lvcreate -n $lv2 -L16M $vg "$dev2"
 lvconvert -y --type cache-pool --poolmetadata $lv2 --cachemode writeback $vg/$lv1 --config='devices { preferred_names=["/dev/mapper/"] }' 
 lvremove -y $vg/$lv1
 
-lvcreate -n $lv1 -L32M $vg $dev1
-lvcreate -n $lv2 -L16M $vg $dev2
+lvcreate -n $lv1 -L32M $vg "$dev1"
+lvcreate -n $lv2 -L16M $vg "$dev2"
 lvconvert -y --type cache-pool --poolmetadata $lv2 $vg/$lv1
 lvremove -y $vg/$lv1
 



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

only message in thread, other threads:[~2021-02-01 11:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-01 11:47 main - tests: check for cache support presence Zdenek Kabelac

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.