From f35fa8c1789da0398345ccae25d79b8fe045e08c Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sun, 2 Jul 2023 17:46:47 +0200 Subject: [PATCH] cleanup: typos --- WHATS_NEW | 2 +- configure | 2 +- configure.ac | 2 +- lib/metadata/vdo_manip.c | 8 ++++---- man/lvcreate.8_end | 6 +++--- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/WHATS_NEW b/WHATS_NEW index 42955809a..b20f795fe 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -147,7 +147,7 @@ Version 2.03.12 - 07th May 2021 Fix IMSM MD RAID detection on 4k devices. Check for presence of VDO target before starting any conversion. Support metatadata profiles with volume VDO pool conversions. - Support -Zn for conversion of already formated VDO pools. + Support -Zn for conversion of already formatted VDO pools. Avoid removing LVs on error path of lvconvert during creation volumes. Fix crashing lvdisplay when thin volume was waiting for merge. Support option --errorwhenfull when converting volume to thin-pool. diff --git a/configure b/configure index 05a5840b5..0bb5b3dbc 100755 --- a/configure +++ b/configure @@ -10858,7 +10858,7 @@ printf "%s\n" "#define VDO_FORMAT_CMD \"$VDO_FORMAT_CMD\"" >>confdefs.h # # Do we need to use the API?? -# Do we want to link lvm2 with a big library for vdoformating ? +# Do we want to link lvm2 with a big library for vdoformatting ? # #AC_ARG_WITH(vdo-include, # AS_HELP_STRING([--with-vdo-include=PATH], diff --git a/configure.ac b/configure.ac index 652938dfb..b43d8b9be 100644 --- a/configure.ac +++ b/configure.ac @@ -625,7 +625,7 @@ AC_DEFINE_UNQUOTED([VDO_FORMAT_CMD], ["$VDO_FORMAT_CMD"], [The path to 'vdoformat', if available.]) # # Do we need to use the API?? -# Do we want to link lvm2 with a big library for vdoformating ? +# Do we want to link lvm2 with a big library for vdoformatting ? # #AC_ARG_WITH(vdo-include, # AS_HELP_STRING([--with-vdo-include=PATH], diff --git a/lib/metadata/vdo_manip.c b/lib/metadata/vdo_manip.c index f24182cca..e8d733a7a 100644 --- a/lib/metadata/vdo_manip.c +++ b/lib/metadata/vdo_manip.c @@ -250,7 +250,7 @@ static int _format_vdo_pool_data_lv(struct logical_volume *data_lv, FILE *f; uint64_t lb; unsigned slabbits; - unsigned reformating = 0; + unsigned reformatting = 0; int args = 1; char buf_args[5][128]; char buf[256]; /* buffer for short disk header (64B) */ @@ -345,7 +345,7 @@ static int _format_vdo_pool_data_lv(struct logical_volume *data_lv, if ((c = strchr(buf, '\n'))) *c = 0; /* cut last '\n' away */ if (buf[0]) { - if (reformating) + if (reformatting) log_verbose(" %s", buf); /* Print vdo_format messages */ else log_print_unless_silent(" %s", buf); /* Print vdo_format messages */ @@ -424,14 +424,14 @@ struct logical_volume *convert_vdo_pool_lv(struct logical_volume *data_lv, return NULL; } } else { - log_verbose("Skiping VDO formatting %s.", display_lvname(data_lv)); + log_verbose("Skipping VDO formatting %s.", display_lvname(data_lv)); /* TODO: parse existing VDO data and retrieve vdo_logical_size */ if (!*virtual_extents) vdo_logical_size = data_lv->size; } if (!deactivate_lv(data_lv->vg->cmd, data_lv)) { - log_error("Cannot deactivate formated VDO pool volume %s.", + log_error("Cannot deactivate formatted VDO pool volume %s.", display_lvname(data_lv)); return NULL; } diff --git a/man/lvcreate.8_end b/man/lvcreate.8_end index 466470cb7..0d257d7ab 100644 --- a/man/lvcreate.8_end +++ b/man/lvcreate.8_end @@ -7,19 +7,19 @@ The LV name is chosen by lvcreate. .br .B lvcreate -i 3 -I 8 -L 100m vg00 .P -Create a raid1 LV with two images, and a useable size of 500 MiB. This +Create a raid1 LV with two images, and a usable size of 500 MiB. This operation requires two devices, one for each mirror image. RAID metadata (superblock and bitmap) is also included on the two devices. .br .B lvcreate --type raid1 -m1 -L 500m -n mylv vg00 .P -Create a mirror LV with two images, and a useable size of 500 MiB. +Create a mirror LV with two images, and a usable size of 500 MiB. This operation requires three devices: two for mirror images and one for a disk log. .br .B lvcreate --type mirror -m1 -L 500m -n mylv vg00 .P -Create a mirror LV with 2 images, and a useable size of 500 MiB. +Create a mirror LV with 2 images, and a usable size of 500 MiB. This operation requires 2 devices because the log is in memory. .br .B lvcreate --type mirror -m1 --mirrorlog core -L 500m -n mylv vg00