master - debug: stack tracing corrections
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=a7404b5b830479e9ff7dd634e015c9ebcdb9b20b Commit: a7404b5b830479e9ff7dd634e015c9ebcdb9b20b Parent: 4f39255dcae168621de9eea264dddfe831286a0d Author: Zdenek Kabelac <[email protected]> AuthorDate: Wed Nov 23 10:30:52 2016 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Wed Nov 23 17:55:03 2016 +0100
debug: stack tracing corrections
--- lib/metadata/mirror.c | 2 +- tools/lvconvert.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-)
lib/metadata/mirror.c +1 -1
@@ -1822,7 +1822,7 @@ static int _form_mirror(struct cmd_context *cmd, struct alloc_handle *ah,if (dm_list_size (&lv->segments) !=1 ||seg_type (first_seg (lv),0 ) !=AREA_LV )if (!insert_layer_for_lv (cmd, lv,0 ,"_mimage_%d" )) -return 0 ; + return_0;/* * create mirror image LVs
tools/lvconvert.c +5 -5
@@ -1806,7 +1806,7 @@ static int _lvconvert_mirrors(struct cmd_context *cmd,if (!_lvconvert_mirrors_parse_params (cmd, lv, lp, &old_mimage_count, &old_log_count, &new_mimage_count, &new_log_count)) -return 0 ; + return_0; if (((old_mimage_count < new_mimage_count && old_log_count > new_log_count) || (old_mimage_count > new_mimage_count && old_log_count < new_log_count)) &&
@@ -1827,7 +1827,9 @@ static int _lvconvert_mirrors(struct cmd_context *cmd,if (!_lvconvert_mirrors_aux (cmd, lv, lp,NULL , new_mimage_count, new_log_count)) -return 0 ; + return_0; + +backup (lv->vg);if (!lp->need_polling) log_print_unless_silent("Logical volume %s converted.",
@@ -1836,8 +1838,6 @@ static int _lvconvert_mirrors(struct cmd_context *cmd,log_print_unless_silent ("Logical volume %s being converted." ,display_lvname (lv)); -backup (lv->vg); -return 1 ; }
@@ -2028,7 +2028,7 @@ static int _lvconvert_raid(struct logical_volume *lv, struct lvconvert_params *l/* Activation is required later which precludes existing supported raid4 segment */ if (!_raid4_conversion_supported (lv, lp)) -return 0 ; + return_0;/* Activation is required later which precludes existing supported raid10 segment */ if ((seg_is_raid10(seg) || segtype_is_raid10(lp->segtype)) &&