1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/test
Milan Broz 31f55a07db Fix convert polling to ignore LV with different UUID.
When mirror convert polling is started (mainly as backgound process,
in lvchange -a y or in lvconvert itself) it tries to read VG
and LV identified by its name.

Unfortunatelly, the VG can have already different LV under the same name,
and various more or less funny things can happen (note that
_finish_lvconvert_mirror suspends the volume for example).

(the typical example is our testing script which continuously recreates
LVs under the same name in the same VG.)

This patch adds optional uuid parameter which helps to properly
select the monitoring object. For lvconvert polling it is set to LV UUID
and both _get_lvconvert_vg and _get_lvconvert_lv uses it to read proper VG/LV.

(In the pvmove case it is NULL, here we poll for physical volume name).
2009-06-01 14:43:27 +00:00
..
api Rename liblvm.so to liblvm2app.so and use configure --enable-applib. 2009-05-22 14:44:59 +00:00
.gitignore Add testing framework, along with first few tests. 2007-09-18 14:00:42 +00:00
harness.c Fix test output collection in harness.c. 2009-02-17 19:36:16 +00:00
harness.sh Also report the tests that have been skipped, at the end of harness.sh. 2008-11-04 14:37:51 +00:00
lvm-utils.sh Add tests to check pv_mda_size and vg_mda_size. 2009-05-08 06:10:45 +00:00
Makefile.in Fix some distclean rules. 2009-03-16 18:28:04 +00:00
mkdtemp Clean-up and wording changes; add copyright notices. 2007-09-18 14:02:22 +00:00
not.c In testsuite's not.c, print a notice when program dies of a fatal signal. 2009-02-17 19:37:28 +00:00
t-000-basic.sh Move tools/version.h to lib/misc/lvm-version.h. 2009-02-22 22:11:58 +00:00
t-covercmd.sh Fix segfault for vgcfgrestore on VG with missing PVs. 2009-03-24 13:16:34 +00:00
t-fsadm.sh Add skeleton of fsadm nightly test but skip (doesn't work yet). 2009-01-15 17:14:38 +00:00
t-inconsistent-metadata.sh Document current state of inconsistent metadata behaviour of a few commands in 2009-01-09 10:16:57 +00:00
t-listings.sh Fix pvseg report for orphan PVs and other devices. 2009-04-21 12:59:18 +00:00
t-lvconvert-repair.sh Implement, test and document (first iteration of) lvconvert --repair. 2009-04-23 16:56:21 +00:00
t-lvcreate-operation.sh Import a bunch of new tests by jstava. Mostly everything pass, they however 2008-11-11 15:29:24 +00:00
t-lvcreate-pvtags.sh Minor code and documentation cleanups and changes by jstava. 2008-11-10 12:43:35 +00:00
t-lvcreate-usage.sh Check max_lv on only place and force the check only for new volume. 2009-05-13 21:29:10 +00:00
t-lvextend-percent-extents.sh Add test for seg_start, seg_count, seg_start_pe 2009-05-11 03:37:34 +00:00
t-lvmcache-exercise.sh Update a bunch of tests to use functionality from test-utils.sh. 2008-09-29 16:02:50 +00:00
t-lvresize-usage.sh Update a bunch of tests to use functionality from test-utils.sh. 2008-09-29 16:02:50 +00:00
t-mdata-strings.sh Fix whitespace in t-mdata-strings.sh 2009-04-03 14:23:17 +00:00
t-metadata.sh Add a bunch of sub-tests aimed at testing various bugzillas, by jstava. 2008-11-11 15:46:15 +00:00
t-mirror-basic.sh bz429342 lvcreate --nosync 2008-11-10 12:37:53 +00:00
t-mirror-lvconvert-usage.sh Import a bunch of new tests by jstava. Mostly everything pass, they however 2008-11-11 15:29:24 +00:00
t-mirror-lvconvert.sh Fix convert polling to ignore LV with different UUID. 2009-06-01 14:43:27 +00:00
t-mirror-names.sh add bz264241 check 2008-11-10 12:41:52 +00:00
t-mirror-vgreduce-removemissing.sh Explicitly check after lvremove -ff vg that it did its job. By jstava. 2008-11-10 12:32:00 +00:00
t-partial-activate.sh Fix vgreduce --removemissing failure exit code. 2009-04-22 17:00:28 +00:00
t-pool-labels.sh Fix t-pool-labels to pass again after the vgdisplay error return fix from 2008-11-10 13:44:01 +00:00
t-pv-range-overflow.sh More test conversions by jstava. Make check still passes. 2008-10-06 16:47:07 +00:00
t-pvchange-usage.sh More test conversions by jstava. Make check still passes. 2008-10-06 16:47:07 +00:00
t-pvcreate-metadata0.sh More test conversions by jstava. Make check still passes. 2008-10-06 16:47:07 +00:00
t-pvcreate-operation.sh Detect and wipe swap signatures in pvcreate. 2009-03-17 13:59:56 +00:00
t-pvcreate-usage.sh Add tests to check pv_mda_size and vg_mda_size. 2009-05-08 06:10:45 +00:00
t-pvmove-basic.sh If pvmove fails activating mirror volume, try restore to previous state. 2009-05-19 09:51:02 +00:00
t-pvremove-usage.sh add bz264241 check 2008-11-10 12:41:52 +00:00
t-read-ahead.sh Fix readahead test. 2009-05-20 11:27:14 +00:00
t-unlost-pv.sh Minor code and documentation cleanups and changes by jstava. 2008-11-10 12:43:35 +00:00
t-vgcfgbackup-usage.sh Use PV UUID in hash for device name when exporting metadata. 2009-05-19 09:48:32 +00:00
t-vgchange-usage.sh Import a bunch of new tests by jstava. Mostly everything pass, they however 2008-11-11 15:29:24 +00:00
t-vgcreate-usage.sh Add tests to check vgcreate --physicalextentsize and field vg_extent_size. 2009-05-08 05:15:52 +00:00
t-vgmerge-operation.sh add bz264241 check 2008-11-10 12:41:52 +00:00
t-vgmerge-usage.sh More test conversions by jstava. Make check still passes. 2008-10-06 16:47:07 +00:00
t-vgreduce-usage.sh Minor code and documentation cleanups and changes by jstava. 2008-11-10 12:43:35 +00:00
t-vgrename-usage.sh Update a bunch of tests to use functionality from test-utils.sh. 2008-09-29 16:02:50 +00:00
t-vgsplit-operation.sh Fix [ a = b ] usage in t-vgsplit-operation: string comparison is '=', not '=='. 2008-09-30 18:29:10 +00:00
t-vgsplit-usage.sh Minor code and documentation cleanups and changes by jstava. 2008-11-10 12:43:35 +00:00
test-lib.sh Export testlib_cleanup_ from test-lib.sh, which is needed for test-utils.sh to 2008-09-29 16:00:53 +00:00
test-utils.sh Check max_lv on only place and force the check only for new volume. 2009-05-13 21:29:10 +00:00