return glvl;
bad:
log_error("Initialization of historical LV representation for removed logical "
- "volume %s/%s failed.", seg->lv->vg->name, seg->lv->name);
+ "volume %s failed.", display_lvname(seg->lv));
if (glvl)
dm_pool_free(mem, glvl);
return NULL;
return historical_glvl->glv;
bad:
log_error("Failed to create historical LV representation for removed logical "
- "volume %s/%s.", seg_to_remove->lv->vg->name, seg_to_remove->lv->name);
+ "volume %s.", display_lvname(seg_to_remove->lv));
if (origin_glv_created)
seg_to_remove->origin->this_glv = NULL;
if (historical_glvl)
if (!seg->pool_lv) {
log_error(INTERNAL_ERROR
"No pool associated with %s LV, %s.",
- lvseg_name(seg), seg->lv->name);
+ lvseg_name(seg), display_lvname(seg->lv));
return 0;
}
}
if (!lv_is_thin_pool(seg->pool_lv)) {
- log_error(INTERNAL_ERROR
- "Cannot detach pool from LV %s.",
- seg->lv->name);
+ log_error(INTERNAL_ERROR "Cannot detach pool from LV %s.",
+ display_lvname(seg->lv));
return 0;
}
case DM_THIN_MESSAGE_CREATE_THIN:
if (tmsg->u.lv == seg->lv) {
log_debug_metadata("Discarding message for LV %s.",
- tmsg->u.lv->name);
+ display_lvname(tmsg->u.lv));
dm_list_del(&tmsg->list);
no_update = 1; /* Replacing existing */
}
if ((lv_is_thin_type(seg->lv) && !seg_is_pool(pool_seg))) {
log_error("%s on %s is not a %s pool segment",
- pool_seg->lv->name, seg->lv->name,
+ display_lvname(pool_seg->lv), display_lvname(seg->lv),
lv_is_thin_type(seg->lv) ? "thin" : "cache");
return NULL;
}
if (pool_lv->le_count) {
log_error(INTERNAL_ERROR "Pool %s already has extents.",
- pool_lv->name);
+ display_lvname(pool_lv));
return 0;
}
if (!activation())
log_warn("WARNING: Pool %s is created without initialization.",
- pool_lv->name);
+ display_lvname(pool_lv));
else if (!test_mode()) {
if (!vg_write(pool_lv->vg) || !vg_commit(pool_lv->vg))
return_0;