mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvconvert: move log message to fix segfault
log message was printing lv name from released vg
This commit is contained in:
parent
0143c7aebe
commit
91f869e43c
@ -5774,14 +5774,15 @@ static int _lvconvert_detach_writecache_when_clean(struct cmd_context *cmd,
|
||||
backup(vg);
|
||||
|
||||
out_release:
|
||||
if (ret)
|
||||
log_print_unless_silent("Logical volume %s write cache has been detached.", display_lvname(lv));
|
||||
|
||||
unlock_and_release_vg(cmd, vg, vg->name);
|
||||
|
||||
out_lockd:
|
||||
if (!lockd_vg(cmd, id->vg_name, "un", 0, &lockd_state))
|
||||
stack;
|
||||
|
||||
if (ret)
|
||||
log_print_unless_silent("Logical volume %s write cache has been detached.", display_lvname(lv));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user