master - lvconvert: support to convert lv into vdopool
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=7b8aa4af57a8064ea3fa29355283aada2dac0db0 Commit: 7b8aa4af57a8064ea3fa29355283aada2dac0db0 Parent: 6206bd0e790b92c8ec53c340902f74932675836f Author: Zdenek Kabelac <[email protected]> AuthorDate: Sat Jun 30 23:38:49 2018 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Jul 9 15:29:16 2018 +0200
lvconvert: support to convert lv into vdopool
Support:
lvconvert --type vdo-pool vg/lv
lvconvert --vdopool vg/lv --virtualsize 10G
--- tools/command-lines.in | 18 ++++++++ tools/lvconvert.c | 112 ++++++++++++++++++++++++++++++++++++++++++++++++ tools/lvmcmdline.c | 4 ++ tools/tools.h | 3 + 4 files changed, 137 insertions(+), 0 deletions(-)
tools/command-lines.in +18 -0
@@ -555,6 +555,24 @@ RULE: --poolmetadata not --readahead --stripesize --stripes_long --- +lvconvert --type vdo-pool LV_linear_striped_raid_cache +OO: --name LV_new, --virtualsize SizeMB, --compression Bool, --deduplication Bool, OO_LVCONVERT +ID: lvconvert_to_vdopool +DESC: Convert LV to type vdopool. +RULE: all and lv_is_visible +RULE: all not lv_is_locked lv_is_origin lv_is_merging_origin lv_is_external_origin lv_is_virtual + +lvconvert --vdopool LV_linear_striped_raid_cache +OO: --type vdo-pool, OO_LVCONVERT, +--name LV_new, --virtualsize SizeMB, --compression Bool, --deduplication Bool +ID: lvconvert_to_vdopool_param +DESC: Convert LV to type vdopool. +RULE: all and lv_is_visible +RULE: all not lv_is_locked lv_is_origin lv_is_merging_origin lv_is_external_origin lv_is_virtual +FLAGS: SECONDARY_SYNTAX + +--- + lvconvert --splitcache LV_cachepool_cache_thinpool OO: OO_LVCONVERT ID: lvconvert_split_and_keep_cachepool
tools/lvconvert.c +112 -0
118 lines not on this page · raw message
tools/lvmcmdline.c +4 -0
@@ -143,6 +143,10 @@ static const struct command_function _command_functions[CMD_COUNT] = {/* redirected to merge_snapshot/merge_thin/merge_mirrors */ { lvconvert_merge_CMD, lvconvert_merge_cmd }, +/* lvconvert VDO pool */ + { lvconvert_to_vdopool_CMD, lvconvert_to_vdopool_cmd }, + { lvconvert_to_vdopool_param_CMD, lvconvert_to_vdopool_param_cmd }, + };
tools/tools.h +3 -0
@@ -267,4 +267,7 @@ int lvconvert_change_region_size_cmd(struct cmd_context * cmd, int argc, char **int lvconvert_merge_cmd (struct cmd_context *cmd,int argc,char **argv); +int lvconvert_to_vdopool_cmd (struct cmd_context *cmd,int argc,char **argv); +int lvconvert_to_vdopool_param_cmd (struct cmd_context *cmd,int argc,char **argv); +#endif