Skip to contentSkip to conversation

master - test: Also test repeated --cachesettings in lvchange-cache.

PATCH Petr Rockai 1 participant 1 message Nov 20, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=71271cf9053bd4fb6d6dbf1c4240fcb105165084
Commit:        71271cf9053bd4fb6d6dbf1c4240fcb105165084
Parent:        c75ae0846e4c1a74fbd44d85837e2b6dc50e9783
Author:        Petr Rockai <[email protected]>
AuthorDate:    Thu Nov 20 12:35:51 2014 +0100
Committer:     Petr Rockai <[email protected]>
CommitterDate: Thu Nov 20 16:51:07 2014 +0100

test: Also test repeated --cachesettings in lvchange-cache.

---
 test/shell/lvchange-cache.sh |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
test/shell/lvchange-cache.sh +10 -0
index 4845bba..87a217a 100644
@@ -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