1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/test
David Teigland 2282f53ac7 lvconvert: rework routing of operations
Add new logic to identify each unique operation and route
it to the correct function to perform it.  The functions
that perform the conversions remain unchanged.

This new code checks every allowed combination of LV type
and requested operation, and for each valid combination
calls the function that performs that conversion.

The first stage of option validation which checks for
incompatible combinations of command line options, is done
done before process_each is called.  This is unchanged.
(This new code will allow that first stage validation to
be simplified in a future commit.)

The second stage of checking options against the specific
LV type is done by this new code.  For each valid combination
of operation + LV type, the new code calls an existing
function that implements it.

With this in place, the ad hoc checks for valid combinations
of LV types and operations can be removed from the existing
code in a future commit.

(The #if 0 is used to keep the patch clean, and the
disabled code will be removed by a following patch.)
2016-06-29 16:55:27 -05:00
..
api test: Move bus configuration to prepare function 2016-03-23 12:27:34 +01:00
dbus lvmdbustest: Comment out refresh check for LV create 2016-06-28 13:36:32 -05:00
lib tests: aux prepare_thin_metadata 2016-06-23 14:59:29 +02:00
shell lvconvert: rework routing of operations 2016-06-29 16:55:27 -05:00
unit doc: change fsf address 2016-01-21 12:11:37 +01:00
.gitignore gitignore: Remove redundant test dir entry 2012-06-08 23:34:15 +01:00
Makefile.in vgimportclone: add native command 2016-06-22 13:13:10 -05:00