From ab44df53f766f47e4b1b7d77fab5048865237790 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Sat, 8 Feb 2020 16:03:49 +0100 Subject: [PATCH] fix some typos Signed-off-by: Thomas Lamprecht --- PVE/AbstractConfig.pm | 8 ++++---- PVE/Replication.pm | 2 +- PVE/ReplicationConfig.pm | 4 ++-- tests/abstract-config-tests.pl | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/PVE/AbstractConfig.pm b/PVE/AbstractConfig.pm index d6e569b..782714f 100644 --- a/PVE/AbstractConfig.pm +++ b/PVE/AbstractConfig.pm @@ -209,7 +209,7 @@ sub load_current_config { # Lock config file using flock, run $code with @param, unlock config file. -# $timeout is the maximum time to aquire the flock +# $timeout is the maximum time to acquire the flock sub lock_config_full { my ($class, $vmid, $timeout, $code, @param) = @_; @@ -235,7 +235,7 @@ sub create_and_lock_config { }); } -# destroys configuration, only applyable for configs owned by the callers node. +# destroys configuration, only applicable for configs owned by the callers node. # dies if removal fails, e.g., when inquorate. sub destroy_config { my ($class, $vmid) = @_; @@ -245,7 +245,7 @@ sub destroy_config { } # Lock config file using flock, run $code with @param, unlock config file. -# $timeout is the maximum time to aquire the flock +# $timeout is the maximum time to acquire the flock # $shared eq 1 creates a non-exclusive ("read") flock sub lock_config_mode { my ($class, $vmid, $timeout, $shared, $code, @param) = @_; @@ -350,7 +350,7 @@ sub is_template { return 1 if defined $conf->{template} && $conf->{template} == 1; } -# Checks whether $feature is availabe for the referenced volumes in $conf. +# Checks whether $feature is available for the referenced volumes in $conf. # Note: depending on the parameters, some volumes may be skipped! sub has_feature { my ($class, $feature, $conf, $storecfg, $snapname, $running, $backup_only) = @_; diff --git a/PVE/Replication.pm b/PVE/Replication.pm index 7440bed..ae1ade4 100644 --- a/PVE/Replication.pm +++ b/PVE/Replication.pm @@ -357,7 +357,7 @@ my $run_replication_nolock = sub { my $volumes; - # we normaly write errors into the state file, + # we normally write errors into the state file, # but we also catch unexpected errors and log them to syslog # (for examply when there are problems writing the state file) diff --git a/PVE/ReplicationConfig.pm b/PVE/ReplicationConfig.pm index e58597e..66ef842 100644 --- a/PVE/ReplicationConfig.pm +++ b/PVE/ReplicationConfig.pm @@ -29,7 +29,7 @@ sub parse_replication_job_id { if ($id =~ m/^(\d+)-(\d+)$/) { my ($guest, $jobnum) = (int($1), int($2)); - die "$msg (guest IDs < 100 are reseved)\n" if $guest < 100; + die "$msg (guest IDs < 100 are reserved)\n" if $guest < 100; my $parsed_id = "$guest-$jobnum"; # use parsed integers return wantarray ? ($guest, $jobnum, $parsed_id) : $parsed_id; } @@ -73,7 +73,7 @@ my $defaultData = { optional => 1, }, schedule => { - description => "Storage replication schedule. The format is a subset of `systemd` calender events.", + description => "Storage replication schedule. The format is a subset of `systemd` calendar events.", type => 'string', format => 'pve-calendar-event', maxLength => 128, default => '*/15', diff --git a/tests/abstract-config-tests.pl b/tests/abstract-config-tests.pl index db18c57..6eeeeb4 100755 --- a/tests/abstract-config-tests.pl +++ b/tests/abstract-config-tests.pl @@ -13,13 +13,13 @@ use PVE::AbstractConfig; # tests for different top level method implementations of AbstractConfig # tests need to specify the method, the parameter and expected result -# for neatly doing more tests per single method you can specifiy a subtests +# for neatly doing more tests per single method you can specify a subtests # array, which then only has params and expected result # sometimes the return value is less interesting to check than a parameter # reference, so one can use "map_expect_to_param_id" to tell the test system to # use that as expected result. -# note that the indentaion level below is "wrong" by design +# note that the indentation level below is "wrong" by design my $tests = [ { method => 'parse_pending_delete', @@ -171,7 +171,7 @@ sub do_test($$;$) { if (defined(my $param_id = $test->{map_expect_to_param_id})) { # it's a /cool/ hack, sometimes we have the interesting result in # "call-by-reference" param, and the return value is just some "I did - # someting" or plain undef value. So allow to map the result to one of + # something" or plain undef value. So allow to map the result to one of # the parameters $res = $params->[$param_id]; }