mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cleanup: add dots to some messages
Add missing dots and one comment.
This commit is contained in:
parent
0a525832f9
commit
6268d0a080
@ -1394,7 +1394,7 @@ int lvs_in_vg_opened(const struct volume_group *vg)
|
||||
if (lv_is_visible(lvl->lv))
|
||||
count += (_lv_open_count(vg->cmd, lvl->lv) > 0);
|
||||
|
||||
log_debug_activation("Counted %d open LVs in VG %s", count, vg->name);
|
||||
log_debug_activation("Counted %d open LVs in VG %s.", count, vg->name);
|
||||
|
||||
return count;
|
||||
}
|
||||
|
@ -4347,7 +4347,7 @@ static int _request_confirmation(const struct volume_group *vg,
|
||||
struct lvinfo info = { 0 };
|
||||
|
||||
if (!lv_info(vg->cmd, lv, 0, &info, 1, 0) && driver_version(NULL, 0)) {
|
||||
log_error("lv_info failed: aborting");
|
||||
log_error("lv_info failed: aborting.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -4373,7 +4373,7 @@ static int _request_confirmation(const struct volume_group *vg,
|
||||
if (!lp->ac_force) {
|
||||
if (yes_no_prompt("Do you really want to reduce %s? [y/n]: ",
|
||||
display_lvname(lv)) == 'n') {
|
||||
log_error("Logical volume %s NOT reduced",
|
||||
log_error("Logical volume %s NOT reduced.",
|
||||
display_lvname(lv));
|
||||
return 0;
|
||||
}
|
||||
@ -4890,7 +4890,7 @@ static int _lvresize_adjust_extents(struct cmd_context *cmd, struct logical_volu
|
||||
|
||||
/* FIXME Support LVs with mixed segment types */
|
||||
if (lp->segtype != get_segtype_from_string(cmd, lp->ac_type ? : lp->segtype->name)) {
|
||||
log_error("VolumeType does not match (%s)", lp->segtype->name);
|
||||
log_error("VolumeType does not match (%s).", lp->segtype->name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -5174,8 +5174,7 @@ static int _lvresize_check_type(const struct logical_volume *lv,
|
||||
{
|
||||
if (lv_is_origin(lv)) {
|
||||
if (lp->resize == LV_REDUCE) {
|
||||
log_error("Snapshot origin volumes cannot be reduced "
|
||||
"in size yet.");
|
||||
log_error("Snapshot origin volumes cannot be reduced in size yet.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -5273,6 +5272,8 @@ static struct logical_volume *_lvresize_volume(struct cmd_context *cmd,
|
||||
lp->extents - lv->le_count,
|
||||
pvh, alloc, lp->approx_alloc))
|
||||
return_NULL;
|
||||
/* Check for over provisioning only when lv_extend() passed,
|
||||
* ATM this check does not fail */
|
||||
else if (!pool_check_overprovisioning(lv))
|
||||
return_NULL;
|
||||
|
||||
|
@ -206,7 +206,7 @@ int thin_pool_feature_supported(const struct logical_volume *lv, int feature)
|
||||
seg->segtype->ops->target_present &&
|
||||
!seg->segtype->ops->target_present(lv->vg->cmd, NULL, &attr)) {
|
||||
log_error("%s: Required device-mapper target(s) not "
|
||||
"detected in your kernel", seg->segtype->name);
|
||||
"detected in your kernel.", seg->segtype->name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -753,7 +753,7 @@ int check_new_thin_pool(const struct logical_volume *pool_lv)
|
||||
return 0;
|
||||
}
|
||||
|
||||
log_verbose("Deactivating public thin pool %s",
|
||||
log_verbose("Deactivating public thin pool %s.",
|
||||
display_lvname(pool_lv));
|
||||
|
||||
/* Prevent any 'race' with in-use thin pool and always deactivate */
|
||||
|
@ -101,13 +101,13 @@ static int _lvresize_params(struct cmd_context *cmd, int argc, char **argv,
|
||||
}
|
||||
|
||||
if (lp->resize == LV_EXTEND && lp->sign == SIGN_MINUS) {
|
||||
log_error("Negative argument not permitted - use lvreduce");
|
||||
log_error("Negative argument not permitted - use lvreduce.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (lp->resize == LV_REDUCE &&
|
||||
((lp->sign == SIGN_PLUS) || (lp->poolmetadatasign == SIGN_PLUS))) {
|
||||
log_error("Positive sign not permitted - use lvextend");
|
||||
log_error("Positive sign not permitted - use lvextend.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -115,7 +115,7 @@ static int _lvresize_params(struct cmd_context *cmd, int argc, char **argv,
|
||||
lp->nofsck = arg_is_set(cmd, nofsck_ARG);
|
||||
|
||||
if (!argc) {
|
||||
log_error("Please provide the logical volume name");
|
||||
log_error("Please provide the logical volume name.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -191,8 +191,8 @@ static int _lvresize_single(struct cmd_context *cmd, const char *vg_name,
|
||||
|
||||
/* Does LV exist? */
|
||||
if (!(lv = find_lv(vg, lp->lv_name))) {
|
||||
log_error("Logical volume %s not found in volume group %s",
|
||||
lp->lv_name, lp->vg_name);
|
||||
log_error("Logical volume %s not found in volume group %s.",
|
||||
lp->lv_name, vg->name);
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user