2018-06-01-stable - cache: drop metadata_format validation
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=cc96eea0298e537bb6299a3ecc9c68737cae2e68 Commit: cc96eea0298e537bb6299a3ecc9c68737cae2e68 Parent: 5f648406b0f2e322851fce36b062a298cb3d6736 Author: Zdenek Kabelac <[email protected]> AuthorDate: Tue Aug 7 10:33:19 2018 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Tue Aug 7 18:04:14 2018 +0200
cache: drop metadata_format validation
Allow to use any combination of cache metadata format for policy.
--- WHATS_NEW | 1 + lib/metadata/cache_manip.c | 5 ----- 2 files changed, 1 insertions(+), 5 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.182 - ============================== + Do not pair cache policy and cache metadata format. Version 2.02.181 - 01 August 2018 =================================
lib/metadata/cache_manip.c +0 -5
@@ -843,15 +843,10 @@ int cache_set_metadata_format(struct lv_segment *seg, cache_metadata_format_t fo/* * If policy is unselected, but format 2 is selected, policy smq is enforced. -* ATM no other then smq & cleaner policy is allowed to select format 2. */ if (!seg->policy_name) {if (format ==CACHE_METADATA_FORMAT_2 ) seg->policy_name ="smq" ; - }else if (strcmp (seg->policy_name,"smq" ) && -strcmp (seg->policy_name,"cleaner" )) { - seg->cache_metadata_format =CACHE_METADATA_FORMAT_1 ; -return 1 ; }/* Check if we need to search for configured cache metadata format */