]> sourceware.org Git - lvm2.git/commitdiff
cache: fix warning test
authorZdenek Kabelac <zkabelac@redhat.com>
Sat, 20 Feb 2021 21:45:13 +0000 (22:45 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 23 Feb 2021 13:56:47 +0000 (14:56 +0100)
The cache here is not 'writethough' - so print proper state
(writeback or passthrough)

tools/lvconvert.c

index 8bd73bb53d1a2175e2de2f695c92668767c38ebc..83bdfd04bf68fdceba13220ea4a3d1a15332ce12 100644 (file)
@@ -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) &&
This page took 0.037428 seconds and 5 git commands to generate.