main - lvconvert: change errors to internal ones
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=5ecd65e6f2f5264b0ebe1177a714bc8d29e882fb Commit: 5ecd65e6f2f5264b0ebe1177a714bc8d29e882fb Parent: b140bba9fe69f3bd4c89f15998b3e197fe9bf428 Author: Zdenek Kabelac <[email protected]> AuthorDate: Sat Feb 20 23:01:25 2021 +0100 Committer: Zdenek Kabelac <[email protected]> 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(-)
tools/lvconvert.c +2 -2
@@ -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; } }