mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
cleanup: update error messages
Correct printed lv names in error messages and add missing trace for return.
This commit is contained in:
parent
b0398f42ad
commit
7bffbe0e2f
@ -2328,15 +2328,15 @@ static int _lvconvert_thin_pool_repair(struct cmd_context *cmd,
|
||||
deactivate_mlv:
|
||||
if (!deactivate_lv(cmd, mlv)) {
|
||||
log_error("Cannot deactivate thin pool metadata volume %s.",
|
||||
mlv->name);
|
||||
return 0;
|
||||
display_lvname(mlv));
|
||||
ret = 0;
|
||||
}
|
||||
|
||||
deactivate_pmslv:
|
||||
if (!deactivate_lv(cmd, pmslv)) {
|
||||
log_error("Cannot deactivate thin pool metadata volume %s.",
|
||||
mlv->name);
|
||||
return 0;
|
||||
log_error("Cannot deactivate pool metadata spare volume %s.",
|
||||
display_lvname(pmslv));
|
||||
ret = 0;
|
||||
}
|
||||
|
||||
if (!ret)
|
||||
@ -2500,15 +2500,15 @@ static int _lvconvert_cache_repair(struct cmd_context *cmd,
|
||||
deactivate_mlv:
|
||||
if (!deactivate_lv(cmd, mlv)) {
|
||||
log_error("Cannot deactivate pool metadata volume %s.",
|
||||
mlv->name);
|
||||
return 0;
|
||||
display_lvname(mlv));
|
||||
ret = 0;
|
||||
}
|
||||
|
||||
deactivate_pmslv:
|
||||
if (!deactivate_lv(cmd, pmslv)) {
|
||||
log_error("Cannot deactivate pool metadata spare volume %s.",
|
||||
mlv->name);
|
||||
return 0;
|
||||
display_lvname(pmslv));
|
||||
ret = 0;
|
||||
}
|
||||
|
||||
if (!ret)
|
||||
|
@ -64,7 +64,7 @@ static int _detach_pvmove_mirror(struct cmd_context *cmd,
|
||||
if (!lv_remove_mirrors(cmd, lv_mirr, 1, 0, _is_pvmove_image_removable, &mimage_to_remove, PVMOVE) ||
|
||||
!remove_layers_for_segments_all(cmd, lv_mirr, PVMOVE,
|
||||
&lvs_completed)) {
|
||||
return 0;
|
||||
return_0;
|
||||
}
|
||||
|
||||
dm_list_iterate_items(lvl, &lvs_completed)
|
||||
|
Loading…
Reference in New Issue
Block a user