diff options
author | Petr Rockai <prockai@redhat.com> | 2014-11-20 12:35:51 +0100 |
---|---|---|
committer | Petr Rockai <prockai@redhat.com> | 2014-11-20 12:35:51 +0100 |
commit | bdfdd2d7e446a671b2074b9ad7df483eaa8e26ba (patch) | |
tree | 1a48c54b98b78ac54175a42ac65c368f8491c9e0 | |
parent | 03116c4420ca61a80d3b7f6bb3a31e88ffe6ff23 (diff) | |
download | lvm2-bdfdd2d7e446a671b2074b9ad7df483eaa8e26ba.tar.gz |
test: Also test repeated --cachesettings in lvchange-cache.
-rw-r--r-- | test/shell/lvchange-cache.sh | 10 |
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 |