mirror of
git://sourceware.org/git/lvm2.git
synced 2025-09-16 17:44:24 +03:00
pool: better error message
This commit is contained in:
@@ -371,8 +371,8 @@ int update_pool_params(const struct segment_type *segtype,
|
|||||||
return_0;
|
return_0;
|
||||||
|
|
||||||
if ((uint64_t) *chunk_size > (uint64_t) data_extents * vg->extent_size) {
|
if ((uint64_t) *chunk_size > (uint64_t) data_extents * vg->extent_size) {
|
||||||
log_error("Chunk size %s is bigger then pool data size.",
|
log_error("Size of %s data volume cannot be smaller then chunk size %s.",
|
||||||
display_size(vg->cmd, *chunk_size));
|
segtype->name, display_size(vg->cmd, *chunk_size));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -569,6 +569,7 @@ static struct logical_volume *_alloc_pool_metadata_spare(struct volume_group *vg
|
|||||||
return_0;
|
return_0;
|
||||||
|
|
||||||
/* FIXME: Maybe using silent mode ? */
|
/* FIXME: Maybe using silent mode ? */
|
||||||
|
log_verbose("Preparing pool metadata spare volume for Volume group %s.", vg->name);
|
||||||
if (!(lv = lv_create_single(vg, &lp)))
|
if (!(lv = lv_create_single(vg, &lp)))
|
||||||
return_0;
|
return_0;
|
||||||
|
|
||||||
@@ -656,6 +657,7 @@ int vg_set_pool_metadata_spare(struct logical_volume *lv)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log_verbose("Renaming %s as pool metadata spare volume %s.", lv->name, new_name);
|
||||||
if (!lv_rename_update(vg->cmd, lv, new_name, 0))
|
if (!lv_rename_update(vg->cmd, lv, new_name, 0))
|
||||||
return_0;
|
return_0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user