mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
thin: fix error path
Print pool name and not the origin name.
This commit is contained in:
parent
4a52a9212c
commit
d7985ebead
@ -7085,8 +7085,8 @@ static struct logical_volume *_lv_create_an_lv(struct volume_group *vg,
|
|||||||
if (thin_pool_was_active < 0)
|
if (thin_pool_was_active < 0)
|
||||||
thin_pool_was_active = 0;
|
thin_pool_was_active = 0;
|
||||||
if (!activate_lv_excl(cmd, pool_lv)) {
|
if (!activate_lv_excl(cmd, pool_lv)) {
|
||||||
log_error("Failed to activate thin pool %s/%s.",
|
log_error("Failed to activate thin pool %s.",
|
||||||
origin_lv->vg->name, origin_lv->name);
|
display_lvname(pool_lv));
|
||||||
goto revert_new_lv;
|
goto revert_new_lv;
|
||||||
}
|
}
|
||||||
if (!lv_is_active(pool_lv)) {
|
if (!lv_is_active(pool_lv)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user