diff --git a/WHATS_NEW b/WHATS_NEW index 03236d781..9e1797dc2 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -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. diff --git a/test/t-lvcreate-usage.sh b/test/t-lvcreate-usage.sh index 14b6ecb4d..62cf15189 100755 --- a/test/t-lvcreate-usage.sh +++ b/test/t-lvcreate-usage.sh @@ -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 +