From: Alasdair Kergon Date: Tue, 28 Jun 2011 09:43:28 +0000 (+0000) Subject: More readahead tests. X-Git-Tag: v2_02_91~800 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=0b1a30879753203906421d3717a164be98f674b9;p=lvm2.git More readahead tests. --- diff --git a/test/t-lvcreate-usage.sh b/test/t-lvcreate-usage.sh index 1ab29a724..595e1adce 100755 --- a/test/t-lvcreate-usage.sh +++ b/test/t-lvcreate-usage.sh @@ -131,11 +131,22 @@ 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" +check lv_field $vg/$lv lv_kernel_read_ahead "0" lvremove -ff $vg lvcreate -L 32m -n $lv --readahead 8k $vg check lv_field $vg/$lv lv_read_ahead "8.00k" +check lv_field $vg/$lv lv_kernel_read_ahead "8.00k" lvremove -ff $vg lvcreate -L 32m -n $lv --readahead auto $vg check lv_field $vg/$lv lv_read_ahead "auto" +check lv_field $vg/$lv lv_kernel_read_ahead "128.00k" +lvremove -ff $vg +lvcreate -L 32m -n $lv -i2 --stripesize 16k --readahead auto $vg +check lv_field $vg/$lv lv_read_ahead "auto" +check lv_field $vg/$lv lv_kernel_read_ahead "128.00k" +lvremove -ff $vg +lvcreate -L 32m -n $lv -i2 --stripesize 128k --readahead auto $vg +check lv_field $vg/$lv lv_read_ahead "auto" +check lv_field $vg/$lv lv_kernel_read_ahead "512.00k" lvremove -ff $vg