Skip to contentSkip to conversation

master - cleanup: fix grammar in output - less then -> less than

PATCH Zdenek Kabelac 1 participant 1 message May 17, 2018

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=8c453e2e5e5a660b1923629365c8bb87ef017a8f
Commit:        8c453e2e5e5a660b1923629365c8bb87ef017a8f
Parent:        28d35e5c590a01a196ce5a9a1239921921519809
Author:        Rick Elrod <[email protected]>
AuthorDate:    Wed May 16 17:53:38 2018 -0400
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Thu May 17 10:37:45 2018 +0200

cleanup: fix grammar in output - less then -> less than

This minor patch fixes grammar in a few messages which get printed to users. It also fixes the same grammar mistake in several comments.

--

---
 lib/metadata/cache_manip.c                    |    4 ++--
 lib/metadata/metadata.c                       |    2 +-
 lib/metadata/thin_manip.c                     |    2 +-
 test/shell/lvconvert-repair-mirror.sh         |    2 +-
 test/shell/lvextend-thin-metadata-dmeventd.sh |    4 ++--
 5 files changed, 7 insertions(+), 7 deletions(-)
lib/metadata/cache_manip.c +2 -2
index 2a54682..3ed8ce8 100644
@@ -184,7 +184,7 @@ int update_cache_pool_params(struct cmd_context *cmd,
 			 * keep user informed he might be using things in untintended direction
 			 */
 			log_print_unless_silent("Using %s chunk size instead of default %s, "
-						"so cache pool has less then " FMTu64 " chunks.",
+						"so cache pool has less than " FMTu64 " chunks.",
 						display_size(cmd, min_chunk_size),
 						display_size(cmd, *chunk_size),
 						max_chunks);
@@ -193,7 +193,7 @@ int update_cache_pool_params(struct cmd_context *cmd,
 			log_verbose("Setting chunk size to %s.",
 				    display_size(cmd, *chunk_size));
 	} else if (*chunk_size < min_chunk_size) {
-		log_error("Chunk size %s is less then required minimal chunk size %s "
+		log_error("Chunk size %s is less than required minimal chunk size %s "
 			  "for a cache pool of %s size and limit " FMTu64 " chunks.",
 			  display_size(cmd, *chunk_size),
 			  display_size(cmd, min_chunk_size),
lib/metadata/metadata.c +1 -1
index 1cbaf95..2609840 100644
@@ -1050,7 +1050,7 @@ uint32_t extents_from_size(struct cmd_context *cmd, uint64_t size,
 
 	if (size > (uint64_t) MAX_EXTENT_COUNT * extent_size) {
 		log_error("Volume too large (%s) for extent size %s. "
-			  "Upper limit is less then %s.",
+			  "Upper limit is less than %s.",
 			  display_size(cmd, size),
 			  display_size(cmd, (uint64_t) extent_size),
 			  display_size(cmd, (uint64_t) MAX_EXTENT_COUNT *
lib/metadata/thin_manip.c +1 -1
index 3dfbcc1..d2d1384 100644
@@ -228,7 +228,7 @@ int pool_metadata_min_threshold(const struct lv_segment *pool_seg)
 	 *
 	 * In the metadata LV there should be minimum from either 4MiB of free space
 	 * or at least 25% of free space, which applies when the size of thin pool's
-	 * metadata is less then 16MiB.
+	 * metadata is less than 16MiB.
 	 */
 	const dm_percent_t meta_min = DM_PERCENT_1 * 25;
 	dm_percent_t meta_free = dm_make_percent(((4096 * 1024) >> SECTOR_SHIFT),
test/shell/lvconvert-repair-mirror.sh +1 -1
index 0277221..b0c199d 100644
@@ -54,7 +54,7 @@ dd if=/dev/zero of=mnt/zero bs=4K count=100 conv=fdatasync 2>err &
 
 PERCENT=$(get lv_field $vg/$lv1 copy_percent)
 PERCENT=${PERCENT%%\.*}  # cut decimal
-# and check less then 50% mirror is in sync (could be unusable delay_dev ?)
+# and check less than 50% mirror is in sync (could be unusable delay_dev ?)
 test "$PERCENT" -lt 50 || skip
 #lvs -a -o+devices $vg
 
test/shell/lvextend-thin-metadata-dmeventd.sh +2 -2
index 212df4b..3731bf6 100644
@@ -75,7 +75,7 @@ lvcreate -L32M -n $lv3 $vg
 lvchange -an $vg/thin $vg/thin2 $vg/pool
 
 # Filling 2M metadata volume
-# (Test for less then 25% free space in metadata)
+# (Test for less than 25% free space in metadata)
 fake_metadata_ 400 2 >data
 "$LVM_TEST_THIN_RESTORE_CMD" -i data -o "$DM_DEV_DIR/mapper/$vg-$lv1"
 
@@ -89,7 +89,7 @@ fail lvcreate -V20 $vg/pool
 lvchange -an $vg/pool
 
 # Consume more then (100% - 4MiB) out of 32MiB metadata volume  (>87.5%)
-# (Test for less then 4MiB free space in metadata, which is less then 25%)
+# (Test for less than 4MiB free space in metadata, which is less than 25%)
 fake_metadata_ 7400 2 >data
 "$LVM_TEST_THIN_RESTORE_CMD" -i data -o "$DM_DEV_DIR/mapper/$vg-$lv2"
 # Swap volume with restored fake metadata