1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 18:55:19 +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
.gitignore
harness.c
harness.sh
lvm-utils.sh
Makefile.in
mkdtemp
not.c
t-000-basic.sh
t-covercmd.sh
t-fsadm.sh
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
t-lvconvert-repair.sh
t-lvcreate-operation.sh
t-lvcreate-pvtags.sh
t-lvcreate-usage.sh
t-lvextend-percent-extents.sh
t-lvmcache-exercise.sh
t-lvresize-usage.sh
t-mdata-strings.sh
t-metadata.sh
t-mirror-basic.sh
t-mirror-lvconvert-usage.sh
t-mirror-lvconvert.sh
t-mirror-names.sh
t-mirror-vgreduce-removemissing.sh
t-partial-activate.sh
t-pool-labels.sh
t-pv-range-overflow.sh
t-pvchange-usage.sh
t-pvcreate-metadata0.sh
t-pvcreate-operation.sh
t-pvcreate-usage.sh
t-pvmove-basic.sh
t-pvremove-usage.sh
t-read-ahead.sh
t-unlost-pv.sh
t-vgcfgbackup-usage.sh
t-vgchange-usage.sh
t-vgcreate-usage.sh
t-vgmerge-operation.sh
t-vgmerge-usage.sh
t-vgreduce-usage.sh
t-vgrename-usage.sh
t-vgsplit-operation.sh
t-vgsplit-usage.sh
test-lib.sh
test-utils.sh