From 88f1e7a9a7aa9d86d144edc904ff780924c2e560 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 4 Jul 2023 10:58:39 +0200 Subject: [PATCH] cache: support more segtypes for caching Enable support to cache thin/error/zero virtual targets. Use can now select whether he want to cache whole thin-pool, or an individual thin volume out of whole thin-pool. Support using zero and error LVs as data volume for cachepool is possibly useful for benchmarking, not much can be expected from such setup. --- man/lvconvert.8_pregen | 6 +++--- tools/command-lines.in | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/man/lvconvert.8_pregen b/man/lvconvert.8_pregen index 035ae4246..3ecacaacd 100644 --- a/man/lvconvert.8_pregen +++ b/man/lvconvert.8_pregen @@ -538,7 +538,7 @@ Attach a cache pool to an LV, converts the LV to type cache. .RE .P .RS 4 -LV1 types: linear striped thinpool vdo vdopool vdopooldata raid +LV1 types: linear striped thin thinpool vdo vdopool vdopooldata raid error zero .RE .P \(em @@ -718,7 +718,7 @@ Convert LV to type cache-pool. .RE .P .RS 4 -LV1 types: linear striped raid +LV1 types: linear striped raid error zero .RE .P \(em @@ -1766,7 +1766,7 @@ Attach a cache pool to an LV. .RE .P .RS 4 -LV1 types: linear striped thinpool vdo vdopool vdopooldata raid +LV1 types: linear striped thin thinpool vdo vdopool vdopooldata raid error zero .RE .P \(em diff --git a/tools/command-lines.in b/tools/command-lines.in index bb6e09933..9e14f375f 100644 --- a/tools/command-lines.in +++ b/tools/command-lines.in @@ -475,7 +475,7 @@ RULE: --poolmetadata not --readahead --stripesize --stripes_long --- -lvconvert --type cache --cachepool LV LV_linear_striped_raid_thinpool_vdo_vdopool_vdopooldata +lvconvert --type cache --cachepool LV LV_linear_striped_raid_thinpool_vdo_vdopool_vdopooldata_thin_error_zero OO: --cache, OO_LVCONVERT_CACHE, OO_LVCONVERT_POOL, OO_LVCONVERT ID: lvconvert_to_cache_with_cachepool DESC: Attach a cache pool to an LV, converts the LV to type cache. @@ -483,7 +483,7 @@ RULE: all and lv_is_visible RULE: --poolmetadata not --readahead --stripesize --stripes_long # alternate form of lvconvert --type cache -lvconvert --cache --cachepool LV LV_linear_striped_raid_thinpool_vdo_vdopool_vdopooldata +lvconvert --cache --cachepool LV LV_linear_striped_raid_thinpool_vdo_vdopool_vdopooldata_thin_error_zero OO: OO_LVCONVERT_CACHE, OO_LVCONVERT_POOL, OO_LVCONVERT ID: lvconvert_to_cache_with_cachepool DESC: Attach a cache pool to an LV. @@ -579,7 +579,7 @@ AUTOTYPE: thin-pool --- -lvconvert --type cache-pool LV_linear_striped_raid +lvconvert --type cache-pool LV_linear_striped_raid_error_zero OO: OO_LVCONVERT_CACHE, OO_LVCONVERT_POOL, OO_LVCONVERT OP: PV ... ID: lvconvert_to_cachepool