[lvm-devel] main - lvconvert: change errors to internal ones

Zdenek Kabelac zkabelac at sourceware.org
Tue Feb 23 14:04:16 UTC 2021


Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=5ecd65e6f2f5264b0ebe1177a714bc8d29e882fb
Commit:        5ecd65e6f2f5264b0ebe1177a714bc8d29e882fb
Parent:        b140bba9fe69f3bd4c89f15998b3e197fe9bf428
Author:        Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate:    Sat Feb 20 23:01:25 2021 +0100
Committer:     Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Tue Feb 23 14:56:47 2021 +0100

lvconvert: change errors to internal ones

Since these errors should never happen, change them to  internal errors.
---
 tools/lvconvert.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/lvconvert.c b/tools/lvconvert.c
index 83bdfd04b..4dee97ee0 100644
--- a/tools/lvconvert.c
+++ b/tools/lvconvert.c
@@ -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;
 		}
 	}




More information about the lvm-devel mailing list