master - cache: drop validation check
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=f63e20ebcc0488a574fcfb65ea015fb2f988212a Commit: f63e20ebcc0488a574fcfb65ea015fb2f988212a Parent: af8cfa90d9c4cdcb14c1cf69715405e22ac68432 Author: Zdenek Kabelac <[email protected]> AuthorDate: Wed Oct 16 18:47:20 2019 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Thu Oct 17 13:03:49 2019 +0200
cache: drop validation check
Since now we can cache either with cache-pool LV or any other LV (being used as cachevol LV) drop the validation condition.
--- lib/metadata/cache_manip.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-)
lib/metadata/cache_manip.c +0 -6
@@ -341,12 +341,6 @@ int validate_lv_cache_create_pool(const struct logical_volume *pool_lv) {struct lv_segment *seg; -if (!lv_is_cache_pool (pool_lv) && !lv_is_cache_vol (pool_lv)) { -log_error ("Logical volume %s is not a cache pool." , -display_lvname (pool_lv)); -return 0 ; - } -if (lv_is_locked (pool_lv)) {log_error ("Cannot use locked cache pool %s." ,display_lvname (pool_lv));