5
0
mirror of git://git.proxmox.com/git/pve-guest-common.git synced 2025-01-10 01:17:51 +03:00

fix some typos

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-02-08 16:03:49 +01:00
parent 9420142c33
commit ab44df53f7
4 changed files with 10 additions and 10 deletions

View File

@ -209,7 +209,7 @@ sub load_current_config {
# Lock config file using flock, run $code with @param, unlock config file. # 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 { sub lock_config_full {
my ($class, $vmid, $timeout, $code, @param) = @_; 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. # dies if removal fails, e.g., when inquorate.
sub destroy_config { sub destroy_config {
my ($class, $vmid) = @_; my ($class, $vmid) = @_;
@ -245,7 +245,7 @@ sub destroy_config {
} }
# Lock config file using flock, run $code with @param, unlock config file. # 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 # $shared eq 1 creates a non-exclusive ("read") flock
sub lock_config_mode { sub lock_config_mode {
my ($class, $vmid, $timeout, $shared, $code, @param) = @_; my ($class, $vmid, $timeout, $shared, $code, @param) = @_;
@ -350,7 +350,7 @@ sub is_template {
return 1 if defined $conf->{template} && $conf->{template} == 1; 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! # Note: depending on the parameters, some volumes may be skipped!
sub has_feature { sub has_feature {
my ($class, $feature, $conf, $storecfg, $snapname, $running, $backup_only) = @_; my ($class, $feature, $conf, $storecfg, $snapname, $running, $backup_only) = @_;

View File

@ -357,7 +357,7 @@ my $run_replication_nolock = sub {
my $volumes; 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 # but we also catch unexpected errors and log them to syslog
# (for examply when there are problems writing the state file) # (for examply when there are problems writing the state file)

View File

@ -29,7 +29,7 @@ sub parse_replication_job_id {
if ($id =~ m/^(\d+)-(\d+)$/) { if ($id =~ m/^(\d+)-(\d+)$/) {
my ($guest, $jobnum) = (int($1), int($2)); 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 my $parsed_id = "$guest-$jobnum"; # use parsed integers
return wantarray ? ($guest, $jobnum, $parsed_id) : $parsed_id; return wantarray ? ($guest, $jobnum, $parsed_id) : $parsed_id;
} }
@ -73,7 +73,7 @@ my $defaultData = {
optional => 1, optional => 1,
}, },
schedule => { 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', type => 'string', format => 'pve-calendar-event',
maxLength => 128, maxLength => 128,
default => '*/15', default => '*/15',

View File

@ -13,13 +13,13 @@ use PVE::AbstractConfig;
# tests for different top level method implementations of AbstractConfig # tests for different top level method implementations of AbstractConfig
# tests need to specify the method, the parameter and expected result # 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 # array, which then only has params and expected result
# sometimes the return value is less interesting to check than a parameter # 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 # reference, so one can use "map_expect_to_param_id" to tell the test system to
# use that as expected result. # 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 = [ my $tests = [
{ {
method => 'parse_pending_delete', method => 'parse_pending_delete',
@ -171,7 +171,7 @@ sub do_test($$;$) {
if (defined(my $param_id = $test->{map_expect_to_param_id})) { if (defined(my $param_id = $test->{map_expect_to_param_id})) {
# it's a /cool/ hack, sometimes we have the interesting result in # 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 # "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 # the parameters
$res = $params->[$param_id]; $res = $params->[$param_id];
} }