tree-wide: fix typos with codespell
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
@ -44,7 +44,7 @@ sub systemd_netmount {
|
||||
|
||||
# don't do default deps, systemd v241 generator produces ordering deps on both
|
||||
# local-fs(-pre) and remote-fs(-pre) targets if we use the required _netdev
|
||||
# option. Over thre corners this gets us an ordering cycle on shutdown, which
|
||||
# option. Over three corners this gets us an ordering cycle on shutdown, which
|
||||
# may make shutdown hang if the random cycle breaking hits the "wrong" unit to
|
||||
# delete.
|
||||
my $unit = <<"EOF";
|
||||
|
||||
@ -197,7 +197,7 @@ sub path {
|
||||
sub clone_image {
|
||||
my ($class, $scfg, $storeid, $volname, $vmid, $snap) = @_;
|
||||
|
||||
die "storage definintion has no path\n" if !$scfg->{path};
|
||||
die "storage definition has no path\n" if !$scfg->{path};
|
||||
|
||||
my ($vtype, $basename, $basevmid, undef, undef, $isBase, $format) =
|
||||
$class->parse_volname($volname);
|
||||
|
||||
@ -344,7 +344,7 @@ sub alloc_image {
|
||||
|
||||
die "unsupported format '$fmt'" if $fmt ne 'raw';
|
||||
|
||||
die "illegal name '$name' - sould be 'vm-$vmid-*'\n"
|
||||
die "illegal name '$name' - should be 'vm-$vmid-*'\n"
|
||||
if $name && $name !~ m/^vm-$vmid-/;
|
||||
|
||||
my $vgs = lvm_vgs();
|
||||
|
||||
@ -358,7 +358,7 @@ my $delete_lun = sub {
|
||||
# step 3: save to be safe ...
|
||||
$execute_remote_command->($scfg, $timeout, $targetcli, 'saveconfig');
|
||||
|
||||
# update interal cache
|
||||
# update internal cache
|
||||
$free_lu_name->($scfg, $volname);
|
||||
|
||||
last;
|
||||
|
||||
@ -86,7 +86,7 @@ sub alloc_image {
|
||||
|
||||
die "unsupported format '$fmt'" if $fmt ne 'raw';
|
||||
|
||||
die "illegal name '$name' - sould be 'vm-$vmid-*'\n"
|
||||
die "illegal name '$name' - should be 'vm-$vmid-*'\n"
|
||||
if $name && $name !~ m/^vm-$vmid-/;
|
||||
|
||||
my $vgs = PVE::Storage::LVMPlugin::lvm_vgs();
|
||||
|
||||
@ -565,7 +565,7 @@ sub path {
|
||||
|
||||
my $repo = PVE::PBSClient::get_repository($scfg);
|
||||
|
||||
# artifical url - we currently do not use that anywhere
|
||||
# artificial url - we currently do not use that anywhere
|
||||
my $path = "pbs://$repo/$name";
|
||||
|
||||
return ($path, $vmid, $vtype);
|
||||
@ -758,7 +758,7 @@ sub activate_storage {
|
||||
}
|
||||
}
|
||||
|
||||
die "$storeid: Cannot find datastore '$datastore', check permissions and existance!\n";
|
||||
die "$storeid: Cannot find datastore '$datastore', check permissions and existence!\n";
|
||||
}
|
||||
|
||||
sub deactivate_storage {
|
||||
|
||||
@ -134,7 +134,7 @@ my $defaultData = {
|
||||
},
|
||||
maxfiles => {
|
||||
description => "Deprecated: use 'prune-backups' instead. " .
|
||||
"Maximal number of backup files per VM. Use '0' for unlimted.",
|
||||
"Maximal number of backup files per VM. Use '0' for unlimited.",
|
||||
type => 'integer',
|
||||
minimum => 0,
|
||||
optional => 1,
|
||||
@ -445,7 +445,7 @@ sub parse_config {
|
||||
# Storage implementation
|
||||
|
||||
# called during addition of storage (before the new storage config got written)
|
||||
# die to abort additon if there are (grave) problems
|
||||
# die to abort addition if there are (grave) problems
|
||||
# NOTE: runs in a storage config *locked* context
|
||||
sub on_add_hook {
|
||||
my ($class, $storeid, $scfg, %param) = @_;
|
||||
@ -553,7 +553,7 @@ sub get_subdir {
|
||||
|
||||
my $path = $scfg->{path};
|
||||
|
||||
die "storage definintion has no path\n" if !$path;
|
||||
die "storage definition has no path\n" if !$path;
|
||||
|
||||
my $subdir = $vtype_subdirs->{$vtype};
|
||||
|
||||
@ -689,7 +689,7 @@ sub clone_image {
|
||||
my ($class, $scfg, $storeid, $volname, $vmid, $snap) = @_;
|
||||
|
||||
# this only works for file based storage types
|
||||
die "storage definintion has no path\n" if !$scfg->{path};
|
||||
die "storage definition has no path\n" if !$scfg->{path};
|
||||
|
||||
my ($vtype, $basename, $basevmid, undef, undef, $isBase, $format) =
|
||||
$class->parse_volname($volname);
|
||||
@ -1142,7 +1142,7 @@ sub status {
|
||||
|
||||
my $path = $scfg->{path};
|
||||
|
||||
die "storage definintion has no path\n" if !$path;
|
||||
die "storage definition has no path\n" if !$path;
|
||||
|
||||
my $timeout = 2;
|
||||
my $res = PVE::Tools::df($path, $timeout);
|
||||
@ -1166,7 +1166,7 @@ sub activate_storage {
|
||||
|
||||
my $path = $scfg->{path};
|
||||
|
||||
die "storage definintion has no path\n" if !$path;
|
||||
die "storage definition has no path\n" if !$path;
|
||||
|
||||
# this path test may hang indefinitely on unresponsive mounts
|
||||
my $timeout = 2;
|
||||
|
||||
@ -293,7 +293,7 @@ sub alloc_image {
|
||||
|
||||
die "unsupported format '$fmt'" if $fmt ne 'raw';
|
||||
|
||||
die "illegal name '$name' - sould be 'vm-$vmid-*'\n"
|
||||
die "illegal name '$name' - should be 'vm-$vmid-*'\n"
|
||||
if $name && $name !~ m/^vm-$vmid-/;
|
||||
|
||||
my $volname = $name;
|
||||
|
||||
Reference in New Issue
Block a user