1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-30 17:18:21 +03:00

cleanup: some typos

Collection of some typos or invalid uppercase or doublespace cases.
This commit is contained in:
Zdenek Kabelac 2024-05-17 16:51:11 +02:00
parent bbe1b93ed9
commit 45c06025da
8 changed files with 16 additions and 16 deletions

View File

@ -941,7 +941,7 @@ static int _check_value_differs_from_default(struct cft_check_handle *handle,
diff = (v_def && (v_def->type != DM_CFG_EMPTY_ARRAY));
break;
default:
log_error(INTERNAL_ERROR "inconsistent state reached in _check_value_differs_from_default");
log_error(INTERNAL_ERROR "Inconsistent state reached in _check_value_differs_from_default.");
return 0;
}
}
@ -2333,7 +2333,7 @@ int load_profile(struct cmd_context *cmd, struct profile *profile) {
static char profile_path[PATH_MAX];
if (critical_section()) {
log_error(INTERNAL_ERROR "trying to load profile %s "
log_error(INTERNAL_ERROR "Trying to load profile %s "
"in critical section.", profile->name);
return 0;
}

View File

@ -2266,7 +2266,7 @@ static int _text_pv_add_metadata_area(const struct format_type *fmt,
if (fid_get_mda_indexed(fid, pvid, ID_LEN, mda_index)) {
if (!_text_pv_remove_metadata_area(fmt, pv, mda_index)) {
log_error(INTERNAL_ERROR "metadata area with index %u already "
log_error(INTERNAL_ERROR "Metadata area with index %u already "
"exists on PV %s and removal failed.",
mda_index, pv_dev_name(pv));
return 0;

View File

@ -284,17 +284,17 @@ int lvmpolld_poll_init(const struct cmd_context *cmd, const struct poll_operatio
int r = 0;
if (!id->uuid) {
log_error(INTERNAL_ERROR "Use of lvmpolld requires uuid set");
log_error(INTERNAL_ERROR "Use of lvmpolld requires uuid set.");
return 0;
}
if (!id->vg_name) {
log_error(INTERNAL_ERROR "Use of lvmpolld requires vgname set");
log_error(INTERNAL_ERROR "Use of lvmpolld requires vgname set.");
return 0;
}
if (!id->lv_name) {
log_error(INTERNAL_ERROR "Use of lvmpolld requires lvname set");
log_error(INTERNAL_ERROR "Use of lvmpolld requires lvname set.");
return 0;
}
@ -321,7 +321,7 @@ int lvmpolld_poll_init(const struct cmd_context *cmd, const struct poll_operatio
log_error(INTERNAL_ERROR "Unsupported poll operation.");
}
} else
log_error(INTERNAL_ERROR "Unsupported poll operation");
log_error(INTERNAL_ERROR "Unsupported poll operation.");
return r;
}
@ -334,7 +334,7 @@ int lvmpolld_request_info(const struct poll_operation_id *id, const struct daemo
*finished = 1;
if (!id->uuid) {
log_error(INTERNAL_ERROR "use of lvmpolld requires uuid being set");
log_error(INTERNAL_ERROR "Use of lvmpolld requires uuid being set.");
return 0;
}

View File

@ -92,13 +92,13 @@ static struct dm_list *_format_pvsegs(struct dm_pool *mem, const struct lv_segme
if (dm_snprintf(extent_str, sizeof(extent_str),
":%" PRIu32 "-%" PRIu32,
extent, extent + seg_len - 1) < 0) {
log_error("_format_pvseggs: extent range dm_snprintf failed");
log_error("_format_pvsegs: extent range dm_snprintf failed.");
goto bad;
}
} else {
if (dm_snprintf(extent_str, sizeof(extent_str),
"(%" PRIu32 ")", extent) < 0) {
log_error("_format_pvsegs: extent number dm_snprintf failed");
log_error("_format_pvsegs: extent number dm_snprintf failed.");
goto bad;
}
}

View File

@ -128,7 +128,7 @@ int detach_thin_external_origin(struct lv_segment *seg)
{
if (seg->external_lv) {
if (!lv_is_external_origin(seg->external_lv)) {
log_error(INTERNAL_ERROR "Inconsitent external origin.");
log_error(INTERNAL_ERROR "Inconsistent external origin.");
return 0;
}

View File

@ -665,7 +665,7 @@ static void _add_oo_definition_line(const char *name, const char *line)
start = strchr(line, ':') + 2;
if (!(oo->line = strdup(start))) {
log_error("Filler to duplicate line %s.", start);
log_error("Failed to duplicate line %s.", start);
return;
}
}