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 12:35:51 +0100
commitbdfdd2d7e446a671b2074b9ad7df483eaa8e26ba (patch)
tree1a48c54b98b78ac54175a42ac65c368f8491c9e0
parent03116c4420ca61a80d3b7f6bb3a31e88ffe6ff23 (diff)
downloadlvm2-bdfdd2d7e446a671b2074b9ad7df483eaa8e26ba.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