mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Add tests to check for readahead value in lvcreate.
This commit is contained in:
parent
c053fb62bc
commit
e4e8cf3b59
@ -1,5 +1,6 @@
|
||||
Version 2.02.57 -
|
||||
====================================
|
||||
Fix lvcreate --readahead.
|
||||
Fix clvmd memory leak in lv_info_by_lvid.
|
||||
Do not allow creating mirrors of more than 8 images.
|
||||
Use locking_type 3 (compiled in cluster locking) in lvmconf.
|
||||
|
@ -125,3 +125,18 @@ lvcreate -s --virtualoriginsize 64m -L 32m -n $lv1 $vg
|
||||
lvchange -a n $vg/$lv1
|
||||
lvremove $vg/$lv1
|
||||
lvremove -ff $vg
|
||||
|
||||
# readahead default (auto), none, #, auto
|
||||
lvcreate -L 32m -n $lv $vg
|
||||
check_lv_field_ $vg/$lv lv_read_ahead "auto"
|
||||
lvremove -ff $vg
|
||||
lvcreate -L 32m -n $lv --readahead none $vg
|
||||
check_lv_field_ $vg/$lv lv_read_ahead "0"
|
||||
lvremove -ff $vg
|
||||
lvcreate -L 32m -n $lv --readahead 8k $vg
|
||||
check_lv_field_ $vg/$lv lv_read_ahead "8.00k"
|
||||
lvremove -ff $vg
|
||||
lvcreate -L 32m -n $lv --readahead auto $vg
|
||||
check_lv_field_ $vg/$lv lv_read_ahead "auto"
|
||||
lvremove -ff $vg
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user