summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Rockai <prockai@redhat.com>2014-11-20 12:35:51 +0100
committerPetr Rockai <prockai@redhat.com>2014-11-20 16:51:07 +0100
commit71271cf9053bd4fb6d6dbf1c4240fcb105165084 (patch)
tree1bbbe1ea20008cf1109fedf555644e3ceb2607b3
parentc75ae0846e4c1a74fbd44d85837e2b6dc50e9783 (diff)
downloadlvm2-71271cf9053bd4fb6d6dbf1c4240fcb105165084.tar.gz
test: Also test repeated --cachesettings in lvchange-cache.
-rw-r--r--test/shell/lvchange-cache.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/shell/lvchange-cache.sh b/test/shell/lvchange-cache.sh
index 4845bba6b..87a217ae1 100644
--- a/test/shell/lvchange-cache.sh
+++ b/test/shell/lvchange-cache.sh
@@ -47,4 +47,14 @@ dmsetup status | grep $vg-corigin | grep 'migration_threshold 2048'
dmsetup status | grep $vg-corigin | grep 'sequential_threshold 13'
dmsetup status | grep $vg-corigin | grep 'random_threshold 4'
+lvchange --cachesettings migration_threshold=233 --cachesettings sequential_threshold=13 --cachesettings random_threshold=1 $vg/corigin
+dmsetup status | grep $vg-corigin | grep 'migration_threshold 233 '
+dmsetup status | grep $vg-corigin | grep 'sequential_threshold 13 '
+dmsetup status | grep $vg-corigin | grep 'random_threshold 1 '
+
+lvchange --cachesettings random_threshold=default --cachesettings migration_threshold=default $vg/corigin
+dmsetup status | grep $vg-corigin | grep 'migration_threshold 2048 '
+dmsetup status | grep $vg-corigin | grep 'sequential_threshold 13 '
+dmsetup status | grep $vg-corigin | grep 'random_threshold 4 '
+
vgremove -f $vg