]> sourceware.org Git - lvm2.git/commitdiff
cleanup: add stacktrace for error path
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 8 Sep 2014 20:36:42 +0000 (22:36 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 8 Sep 2014 20:36:42 +0000 (22:36 +0200)
lib/metadata/lv_manip.c

index fcf997565672d7b50c34937879793dda35397ccc..60aa6f859a60ecab949252b3684875040dfef3d0 100644 (file)
@@ -3963,13 +3963,13 @@ int lv_rename_update(struct cmd_context *cmd, struct logical_volume *lv,
        }
 
        if (update_mda && !archive(vg))
-               return 0;
+               return_0;
 
        /* rename sub LVs */
        lv_names.old = lv->name;
        lv_names.new = new_name;
        if (!for_each_sub_lv(lv, _rename_cb, (void *) &lv_names))
-               return 0;
+               return_0;
 
        /* rename main LV */
        if (!(lv->name = dm_pool_strdup(cmd->mem, new_name))) {
This page took 0.049877 seconds and 5 git commands to generate.