From 5aff63c07bf737d238f5662b418f466d5fedacd7 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 9 May 2024 14:15:45 +0200 Subject: [PATCH] commands: enable more options for vdo conversion Update definitions to add support for some more VDO options when converting volumes to be used as thin-pool with vdo data volume. Split some option in existing OO_LVCONVERT_VDO to OO_LVCONVERT_VDO_POOL and reused then with OO_LVCONVERT_THINPOOL. --- tools/command-lines.in | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/tools/command-lines.in b/tools/command-lines.in index d9251a7b5..1c728afa0 100644 --- a/tools/command-lines.in +++ b/tools/command-lines.in @@ -332,19 +332,21 @@ RULE: all not LV_thinpool LV_cachepool LV_vdopool --- -OO_LVCONVERT_POOL: --poolmetadata LV, --poolmetadatasize SizeMB, ---poolmetadataspare Bool, --readahead Readahead, --chunksize SizeKB, ---zero Bool, --metadataprofile String, --wipesignatures Bool - -OO_LVCONVERT_THINPOOL: --discards Discards, --errorwhenfull Bool, --pooldatavdo Bool, OO_LVCONVERT_POOL +OO_LVCONVERT_POOL: --chunksize SizeKB, --poolmetadata LV, +--poolmetadatasize SizeMB, --poolmetadataspare Bool, --metadataprofile String, +--readahead Readahead, --wipesignatures Bool, --zero Bool OO_LVCONVERT_CACHE: --cachemetadataformat CacheMetadataFormat, --cachemode CacheMode, --cachepolicy String, --cachesettings String, --zero Bool -OO_LVCONVERT_VDO: --metadataprofile String, --readahead Readahead, ---compression Bool, --deduplication Bool, --vdosettings String, ---zero Bool +OO_LVCONVERT_VDO: --compression Bool, --deduplication Bool, --vdosettings String + +OO_LVCONVERT_VDO_POOL: OO_LVCONVERT_VDO, --metadataprofile String, +--readahead Readahead, --wipesignatures Bool, --zero Bool + +OO_LVCONVERT_THINPOOL: --discards Discards, --errorwhenfull Bool, --pooldatavdo Bool, +OO_LVCONVERT_VDO, OO_LVCONVERT_POOL OO_LVCONVERT: --alloc Alloc, --background, --force, --noudevsync @@ -660,14 +662,14 @@ RULE: --poolmetadata not --readahead --stripesize --stripes_long --- lvconvert --type vdo-pool LV_linear_striped_raid_cache -OO: --name LV_new, --virtualsize SizeMB, OO_LVCONVERT_VDO, OO_LVCONVERT +OO: --name LV_new, --virtualsize SizeMB, OO_LVCONVERT_VDO_POOL, OO_LVCONVERT ID: lvconvert_to_vdopool DESC: Convert LV to type vdopool. RULE: all and lv_is_visible lv_is_writable RULE: all not lv_is_locked lv_is_origin lv_is_merging_origin lv_is_external_origin lv_is_virtual lv_is_raid_with_integrity lvconvert --vdopool LV_linear_striped_raid_cache -OO: OO_LVCONVERT_VDO, OO_LVCONVERT, --name LV_new, --virtualsize SizeMB, +OO: OO_LVCONVERT_VDO_POOL, OO_LVCONVERT, --name LV_new, --virtualsize SizeMB, ID: lvconvert_to_vdopool_param DESC: Convert LV to type vdopool. RULE: all and lv_is_visible