From 7b1daa248ffdc473e016b9694c1f85a827334c89 Mon Sep 17 00:00:00 2001 From: David Teigland Date: Mon, 25 Jul 2016 11:01:56 -0500 Subject: [PATCH] lvconvert: remove warnings about deprecated split option A warning seems too severe for this message, so leave it out until there's a better idea. --- tools/lvconvert.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/tools/lvconvert.c b/tools/lvconvert.c index 5d29cc4d3..c31a8a37f 100644 --- a/tools/lvconvert.c +++ b/tools/lvconvert.c @@ -4047,10 +4047,8 @@ static int _convert_thin_pool(struct cmd_context *cmd, struct logical_volume *lv if (arg_is_set(cmd, splitcache_ARG)) return _convert_thin_pool_splitcache(cmd, lv, lp); - if (arg_is_set(cmd, split_ARG)) { - log_warn("WARNING: Using --splitcache which has replaced the --split option."); + if (arg_is_set(cmd, split_ARG)) return _convert_thin_pool_splitcache(cmd, lv, lp); - } if (arg_is_set(cmd, uncache_ARG)) return _convert_thin_pool_uncache(cmd, lv, lp); @@ -4084,10 +4082,8 @@ static int _convert_cache_volume(struct cmd_context *cmd, struct logical_volume if (arg_is_set(cmd, splitcache_ARG)) return _convert_cache_volume_splitcache(cmd, lv, lp); - if (arg_is_set(cmd, split_ARG)) { - log_warn("WARNING: Using --splitcache which has replaced the --split option."); + if (arg_is_set(cmd, split_ARG)) return _convert_cache_volume_splitcache(cmd, lv, lp); - } if (arg_is_set(cmd, uncache_ARG)) return _convert_cache_volume_uncache(cmd, lv, lp); @@ -4117,10 +4113,8 @@ static int _convert_cache_pool(struct cmd_context *cmd, struct logical_volume *l if (arg_is_set(cmd, splitcache_ARG)) return _convert_cache_pool_splitcache(cmd, lv, lp); - if (arg_is_set(cmd, split_ARG)) { - log_warn("WARNING: Using --splitcache which has replaced the --split option."); + if (arg_is_set(cmd, split_ARG)) return _convert_cache_pool_splitcache(cmd, lv, lp); - } /* FIXME: swapping the cache pool metadata LV needs a specific option like --swapmetadata */ if (arg_is_set(cmd, poolmetadata_ARG))