1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

cleanup: a bit better error message

This commit is contained in:
Zdenek Kabelac 2014-07-02 09:50:04 +02:00
parent 165cfab7db
commit 57f8b33d5d

View File

@ -2759,13 +2759,12 @@ static int _lvconvert_to_pool(struct cmd_context *cmd,
return 0; return 0;
} }
if (metadata_lv == pool_lv) { if (metadata_lv == pool_lv) {
log_error("Can't use same LV for thin pool data and metadata LV %s.", log_error("Can't use same LV for thin pool data and metadata LV %s/%s.",
lp->pool_metadata_lv_name); metadata_lv->vg->name, metadata_lv->name);
return 0; return 0;
} }
if (lv_is_thin_type(metadata_lv)) { if (lv_is_thin_type(metadata_lv)) {
log_error("Can't use thin pool logical volume %s/%s " log_error("Can't use thin type LV %s/%s for thin pool metadata.",
"for thin pool metadata.",
metadata_lv->vg->name, metadata_lv->name); metadata_lv->vg->name, metadata_lv->name);
return 0; return 0;
} }