1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/test
Milan Broz 66086ce962 Fix double releasing of vg when repairing of vg is requested.
Several commands calls process_each_vg() and in provided
callback it explicitly recovers VG if inconsistent.
(vgchange, vgconvert, vgscan)

It means that old VG is released and reread  but the function
above (process_one_vg) tries to unlock and release old VG.

Patch moves the repair logic into _process_one_vg() function.

It always tries to read vg (even inconsistent) and then decides
what to do according new defined parameter.

Also patch unifies inconsistent error messages.

The only slight change if for vgremove command, where
it now tries to repair VG before it removes if force arg is given.
(It works similar way before, just the order of operation changed).
2009-06-05 20:00:52 +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 Fix double releasing of vg when repairing of vg is requested. 2009-06-05 20:00:52 +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 Use lvconvert --repair instead of vgreduce in mirror dmeventd DSO (mornfall) 2009-06-04 12:01:15 +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 Fix rename of active snapshot with virtual origin. 2009-06-01 15:55:06 +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 Add vgrename test to check for existence of new vg. 2009-06-05 10:42:22 +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