mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
cleanup: add stacktrace for error path
This commit is contained in:
parent
c774d9a3f3
commit
319f67b1ab
@ -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))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user