]> sourceware.org Git - lvm2.git/commitdiff
lvconvert: change errors to internal ones
authorZdenek Kabelac <zkabelac@redhat.com>
Sat, 20 Feb 2021 22:01:25 +0000 (23:01 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 23 Feb 2021 13:56:47 +0000 (14:56 +0100)
Since these errors should never happen, change them to  internal errors.

tools/lvconvert.c

index 83bdfd04bf68fdceba13220ea4a3d1a15332ce12..4dee97ee0e934a38fe11287caf64c831d425525c 100644 (file)
@@ -4693,12 +4693,12 @@ static int _lvconvert_to_thin_with_external_single(struct cmd_context *cmd,
                }
 
                if (!(thinpool_lv = find_lv(vg, thinpool_name))) {
-                       log_error("LV %s cannot be found.", display_lvname(thinpool_lv));
+                       log_error(INTERNAL_ERROR "LV %s cannot be found.", thinpool_name);
                        goto out;
                }
 
                if (!lv_is_thin_pool(thinpool_lv)) {
-                       log_error("LV %s is not a thin pool.", display_lvname(thinpool_lv));
+                       log_error(INTERNAL_ERROR "LV %s is not a thin pool.", display_lvname(thinpool_lv));
                        goto out;
                }
        }
This page took 0.034981 seconds and 5 git commands to generate.