From b140bba9fe69f3bd4c89f15998b3e197fe9bf428 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sat, 20 Feb 2021 22:45:13 +0100 Subject: [PATCH] cache: fix warning test The cache here is not 'writethough' - so print proper state (writeback or passthrough) --- tools/lvconvert.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/lvconvert.c b/tools/lvconvert.c index 8bd73bb53..83bdfd04b 100644 --- a/tools/lvconvert.c +++ b/tools/lvconvert.c @@ -2032,8 +2032,8 @@ static int _lvconvert_split_and_remove_cachepool(struct cmd_context *cmd, display_lvname(lv)); return 0; } - log_warn("WARNING: Uncaching of partially missing writethrough cache volume %s might destroy your data.", - display_lvname(lv)); + log_warn("WARNING: Uncaching of partially missing %s cache volume %s might destroy your data.", + cache_mode_num_to_str(first_seg(seg->pool_lv)->cache_mode), display_lvname(lv)); } if (!arg_count(cmd, yes_ARG) &&