struct logical_volume *data_lv = seg_lv(seg, idx);
struct logical_volume *meta_lv = seg_metalv(seg, idx);
- log_very_verbose("Extracting image components %s and %s from %s",
- data_lv->name, meta_lv->name, seg->lv->name);
+ log_very_verbose("Extracting image components %s and %s from %s.",
+ display_lvname(data_lv),
+ display_lvname(meta_lv),
+ display_lvname(seg->lv));
data_lv->status &= ~RAID_IMAGE;
meta_lv->status &= ~RAID_META;
}
}
if (!_extract_image_components(seg, s, &rmeta_lv, &rimage_lv)) {
- log_error("Failed to extract %s from %s",
- seg_lv(seg, s)->name, lv->name);
+ log_error("Failed to extract %s from %s.",
+ display_lvname(seg_lv(seg, s)),
+ display_lvname(lv));
return 0;
}
if (!lv_is_on_pvs(tracking, splittable_pvs)) {
log_error("Unable to split additional image from %s "
"while tracking changes for %s.",
- display_lvname(lv), tracking->name);
+ display_lvname(lv), display_lvname(tracking));
return 0;
}
}
if (s < 0) {
- log_error("Unable to find image to satisfy request");
+ log_error("Unable to find image to satisfy request.");
return 0;
}
dlv = seg_lv(seg, s);
if (!(sublv_name_suffix = first_substring(dlv->name, "_mimage_", "_rimage_", NULL))) {
- log_error(INTERNAL_ERROR "name lags image part");
+ log_error(INTERNAL_ERROR "Name %s lags image part.", dlv->name);
return 0;
}
*(sublv_name_suffix + 1) = conv[direction].type_char;
- log_debug_metadata("data LV renamed to %s.", display_lvname(dlv));
+ log_debug_metadata("Data LV renamed to %s.", display_lvname(dlv));
dlv->status &= ~conv[direction].reset_flag;
dlv->status |= conv[direction].set_flag;
if (!yes && yes_no_prompt("Are you sure you want to convert \"%s\" LV %s to \"%s\" "
"type losing all resilience? [y/n]: ",
lvseg_name(seg), display_lvname(lv), new_segtype->name) == 'n') {
- log_error("Logical volume %s NOT converted to \"%s\"",
+ log_error("Logical volume %s NOT converted to \"%s\".",
display_lvname(lv), new_segtype->name);
return 0;
}
if (segtype_is_any_raid0(new_segtype) &&
!(rename_sublvs = _rename_area_lvs(lv, "_"))) {
- log_error("Failed to rename %s LV %s MetaLVs", lvseg_name(seg), display_lvname(lv));
+ log_error("Failed to rename %s LV %s MetaLVs.",
+ lvseg_name(seg), display_lvname(lv));
return 0;
}
if (rename_sublvs) {
if (!_rename_area_lvs(lv, NULL)) {
- log_error("Failed to rename %s LV %s MetaLVs", lvseg_name(seg), display_lvname(lv));
+ log_error("Failed to rename %s LV %s MetaLVs.",
+ lvseg_name(seg), display_lvname(lv));
return 0;
}
if (!lv_update_and_reload(lv))
return _takeover_unsupported_yet(lv, new_stripes, new_segtype);
if (new_data_copies > new_image_count) {
- log_error("N number of data_copies \"--mirrors N-1\" may not be larger than number of stripes");
+ log_error("N number of data_copies \"--mirrors N-1\" may not be larger than number of stripes.");
return 0;
}
if (new_stripes && new_stripes != seg->area_count) {
- log_error("Can't restripe LV %s during conversion", display_lvname(lv));
+ log_error("Can't restripe LV %s during conversion.", display_lvname(lv));
return 0;
}
/* FIXME: restricted to raid4 for the time being... */
if (!segtype_is_raid4(new_segtype)) {
/* Can't convert striped/raid0* to e.g. raid10_offset */
- log_error("Can't convert %s to %s", display_lvname(lv), new_segtype->name);
+ log_error("Can't convert %s to %s.", display_lvname(lv), new_segtype->name);
return 0;
}
/* Add metadata LVs */
if (seg_is_raid0(seg)) {
- log_debug_metadata("Adding metadata LVs to %s", display_lvname(lv));
+ log_debug_metadata("Adding metadata LVs to %s.", display_lvname(lv));
if (!_raid0_add_or_remove_metadata_lvs(lv, 1 /* update_and_reload */, allocate_pvs, NULL))
return_0;
/* raid0_meta -> raid4 needs clearing of MetaLVs in order to avoid raid disk role cahnge issues in the kernel */
return_0;
/* Add the additional component LV pairs */
- log_debug_metadata("Adding %" PRIu32 " component LV pair(s) to %s", new_image_count - lv_raid_image_count(lv),
+ log_debug_metadata("Adding %" PRIu32 " component LV pair(s) to %s.",
+ new_image_count - lv_raid_image_count(lv),
display_lvname(lv));
if (!_lv_raid_change_image_count(lv, new_image_count, allocate_pvs, NULL, 0, 1))
return_0;
if (segtype_is_raid4(new_segtype) &&
(!_shift_parity_dev(seg) ||
!_rename_area_lvs(lv, "_"))) {
- log_error("Can't convert %s to %s", display_lvname(lv), new_segtype->name);
+ log_error("Can't convert %s to %s.", display_lvname(lv), new_segtype->name);
return 0;
}
_check_and_adjust_region_size(lv);
- log_debug_metadata("Updating VG metadata and reloading %s LV %s",
+ log_debug_metadata("Updating VG metadata and reloading %s LV %s.",
lvseg_name(seg), display_lvname(lv));
if (!_lv_update_reload_fns_reset_eliminate_lvs(lv, NULL))
return_0;