public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2/test t-read-ahead.sh
@ 2008-08-04 9:15 zkabelac
0 siblings, 0 replies; 3+ messages in thread
From: zkabelac @ 2008-08-04 9:15 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac@sourceware.org 2008-08-04 09:15:15
Modified files:
test : t-read-ahead.sh
Log message:
* parse error output for 'auto' keyword
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-read-ahead.sh.diff?cvsroot=lvm2&r1=1.1&r2=1.2
--- LVM2/test/t-read-ahead.sh 2008/06/18 11:32:13 1.1
+++ LVM2/test/t-read-ahead.sh 2008/08/04 09:15:15 1.2
@@ -54,7 +54,7 @@
vgcreate -c n "$vg" "$d1" "$d2" "$d3" "$d4" "$d5" &&
lvcreate -n "$lv" -l 100%FREE -i5 -I256 "$vg" &&
lvdisplay "$vg"/"$lv" &&
- lvchange -r auto "$vg"/"$lv" || true | grep auto &&
+ lvchange -r auto "$vg"/"$lv" 2>&1 | grep auto &&
get_lvs_ lv auto &&
get_lvs_ lv_kernel 5120 &&
lvchange -r 400 "$vg/$lv" &&
^ permalink raw reply [flat|nested] 3+ messages in thread
* LVM2/test t-read-ahead.sh
@ 2009-05-20 11:27 mbroz
0 siblings, 0 replies; 3+ messages in thread
From: mbroz @ 2009-05-20 11:27 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mbroz@sourceware.org 2009-05-20 11:27:15
Modified files:
test : t-read-ahead.sh
Log message:
Fix readahead test.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-read-ahead.sh.diff?cvsroot=lvm2&r1=1.6&r2=1.7
--- LVM2/test/t-read-ahead.sh 2009/05/20 11:09:50 1.6
+++ LVM2/test/t-read-ahead.sh 2009/05/20 11:27:14 1.7
@@ -47,6 +47,8 @@
blockdev --setra 768 $dev1
lvcreate -n $lv -L4M $vg $dev1
test $(blockdev --getra $G_dev_/$vg/$lv) -eq 768
+lvremove -ff $vg
+
# Check default, active/inactive values for read_ahead / kernel_read_ahead
lvcreate -n $lv -l 50%FREE $vg
lvchange -an $vg/$lv
^ permalink raw reply [flat|nested] 3+ messages in thread
* LVM2/test t-read-ahead.sh
@ 2009-05-11 16:17 wysochanski
0 siblings, 0 replies; 3+ messages in thread
From: wysochanski @ 2009-05-11 16:17 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski@sourceware.org 2009-05-11 16:17:12
Modified files:
test : t-read-ahead.sh
Log message:
Update t-read-ahead.sh to validate lv_read_ahead and lv_kernel_read_ahead.
- check default values
- check active/inactive values
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-read-ahead.sh.diff?cvsroot=lvm2&r1=1.4&r2=1.5
--- LVM2/test/t-read-ahead.sh 2008/11/10 12:43:35 1.4
+++ LVM2/test/t-read-ahead.sh 2009/05/11 16:17:12 1.5
@@ -43,3 +43,13 @@
check_lvs_ lv_read_ahead 400
lvremove -ff "$vg"
+# Check default, active/inactive values for read_ahead / kernel_read_ahead
+lvcreate -n $lv -l 50%FREE $vg
+lvchange -an $vg/$lv
+check_lv_field_ $vg/$lv lv_read_ahead auto
+check_lv_field_ $vg/$lv lv_kernel_read_ahead -1
+lvchange -r 512 $vg/$lv
+lvchange -ay $vg/$lv
+check_lv_field_ $vg/$lv lv_read_ahead 256.00K
+check_lv_field_ $vg/$lv lv_kernel_read_ahead 256.00K
+lvremove -ff $vg
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-05-20 11:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-04 9:15 LVM2/test t-read-ahead.sh zkabelac
2009-05-11 16:17 wysochanski
2009-05-20 11:27 mbroz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).