mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
cleanup: easier error messages
This commit is contained in:
parent
99237f0908
commit
f32f0bd2a7
@ -279,20 +279,20 @@ static int _thin_pool_add_target_line(struct dev_manager *dm,
|
|||||||
|
|
||||||
if (!(attr & THIN_FEATURE_BLOCK_SIZE) &&
|
if (!(attr & THIN_FEATURE_BLOCK_SIZE) &&
|
||||||
(seg->chunk_size & (seg->chunk_size - 1))) {
|
(seg->chunk_size & (seg->chunk_size - 1))) {
|
||||||
log_error("Thin pool target does not support %uKiB chunk size "
|
log_error("Thin pool target does not support %s chunk size (needs"
|
||||||
"(needs kernel >= 3.6).", seg->chunk_size / 2);
|
" kernel >= 3.6).", display_size(cmd, seg->chunk_size));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(metadata_dlid = build_dm_uuid(mem, seg->metadata_lv, NULL))) {
|
if (!(metadata_dlid = build_dm_uuid(mem, seg->metadata_lv, NULL))) {
|
||||||
log_error("Failed to build uuid for metadata LV %s.",
|
log_error("Failed to build uuid for metadata LV %s.",
|
||||||
seg->metadata_lv->name);
|
display_lvname(seg->metadata_lv));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(pool_dlid = build_dm_uuid(mem, seg_lv(seg, 0), NULL))) {
|
if (!(pool_dlid = build_dm_uuid(mem, seg_lv(seg, 0), NULL))) {
|
||||||
log_error("Failed to build uuid for pool LV %s.",
|
log_error("Failed to build uuid for pool LV %s.",
|
||||||
seg_lv(seg, 0)->name);
|
display_lvname(seg_lv(seg, 0)));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user