mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-17 06:04:23 +03:00
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. Signed-off-by: Rick Elrod <relrod@redhat.com> --
This commit is contained in:
parent
28d35e5c59
commit
8c453e2e5e
@ -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),
|
||||
|
@ -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 *
|
||||
|
@ -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),
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user