LVM2 ./WHATS_NEW test/t-pvcreate-usage.sh test ...
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski at sourceware.org 2008-07-17 03:17:02
Modified files:
. : WHATS_NEW
test : t-pvcreate-usage.sh t-vgsplit-usage.sh
Added files:
test : t-pvcreate-operation.sh
Log message:
Update pvcreate and vgsplit tests.
Add more pvcreate tests.
Start handling lvm1 and lvm2 metadata and metadatacopies=0,1.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.931&r2=1.932
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-pvcreate-operation.sh.diff?cvsroot=lvm2&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-pvcreate-usage.sh.diff?cvsroot=lvm2&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-vgsplit-usage.sh.diff?cvsroot=lvm2&r1=1.5&r2=1.6
WHATS_NEW +2 -1
@@ -1,6 +1,7 @@ Version 2.02.40 - ================================ - Add pvcreate sanity tests, check for label_write() failure in _text_pv_write(). + Check for label_write() failure in _text_pv_write(). + Add pvcreate tests and update vgsplit tests to handle lvm1 and lvm2 metadata. Fix pvchange -M1 -u to preserve existing extent locations when there's a VG. Cease recognising snapshot-in-use percentages returned by early devt kernels. Add backward-compatible flags field to on-disk format_text metadata.
/cvs/lvm2/LVM2/test/t-pvcreate-operation.sh,v --> standard output revision 1.1
- renamed from test/t-pvcreate-operation.sh +72 -0
72 lines not on this page · raw message
test/t-pvcreate-usage.sh +4 -9
@@ -28,9 +28,9 @@ 'f1=$(pwd)/1 && d1=$(loop_setup_ "$f1") && f2=$(pwd)/2 && d2=$(loop_setup_ "$f2") && f3=$(pwd)/3 && d3=$(loop_setup_ "$f3") && - f4=$(pwd)/4 && d4=$(loop_setup_ "$f4")' + f4=$(pwd)/4 && d4=$(loop_setup_ "$f4") && + vg1=$(this_test_)-test-vg1-$$' -# x. negative setphysicalvolumesize, metadatasize test_expect_success \ 'pvcreate rejects negative setphysicalvolumesize' \ 'pvcreate --setphysicalvolumesize -1024 $d1;
@@ -57,13 +57,11 @@ # 'pvcreate --metadatasize 100000000000000 $d1; # status=$?; echo status=$status; test $status != 0' -# x. metadatacopies < 0, defaults to 1 test_expect_success \ 'pvcreate rejects metadatacopies < 0' \ 'pvcreate --metadatacopies -1 $d1; status=$?; echo status=$status; test $status != 0' -# x. metadatacopies = 0, 1, 2 pass, > 2 fail test_expect_success \ 'pvcreate accepts metadatacopies = 0, 1, 2' \ 'pvcreate --metadatacopies 0 $d1 &&
@@ -76,19 +74,16 @@ pvremove $d2 && pvremove $d3' -# x. metadatacopies > 2 fail test_expect_success \ 'pvcreate rejects metadatacopies > 2' \ - 'pvcreate --metadatacopies 3 $d1 && + 'pvcreate --metadatacopies 3 $d1; status=$?; echo status=$status; test $status != 0' -# x. bogus device given test_expect_success \ 'pvcreate rejects invalid device' \ - 'pvcreate $d1bogus && + 'pvcreate $d1bogus; status=$?; echo status=$status; test $status != 0' -# x. labelsector out of range (< 0 or > deviceSizeInSectors) test_expect_success \ 'pvcreate rejects labelsector < 0' \ 'pvcreate --labelsector -1 $d1;
test/t-vgsplit-usage.sh +60 -54
212 lines not on this page · raw message