mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: add test for handling unknown cache settings
This commit is contained in:
parent
a8ee82ed51
commit
fc5f9924c7
@ -275,6 +275,19 @@ dmsetup status | grep $vg-corigin | grep 'migration_threshold 1233'
|
||||
lvremove -f $vg
|
||||
|
||||
|
||||
####################################################
|
||||
# S/MQ policy does not accept random string settings
|
||||
####################################################
|
||||
|
||||
lvcreate -L1 -n $lv1 $vg
|
||||
lvcreate -L1 -H $vg/$lv1 --cachesettings unknown=0 |& tee out
|
||||
|
||||
grep "not support \"unknown=0\"" out
|
||||
|
||||
# But still the caching should proceed and LV should be available
|
||||
check lv_exists $vg/$lv1
|
||||
|
||||
|
||||
##############################
|
||||
# Test things that should fail
|
||||
##############################
|
||||
|
Loading…
Reference in New Issue
Block a user